I’m converting the 2d platformer tutorial character controller from javascript to c# and I encountered a problem that I can’t find an answer to.
javascript:
// pointer to the player so we can get values from it quickly
private var controller : PlatformerController;
function Start () {
controller = GetComponent (PlatformerController);
}
c#
// pointer to the player so we can get values from it quickly
private PlatformerController controller;
void Start () {
controller = GetComponent (PlatformerController);
}
and it gives me the error:
The type or namespace name `PlatformerController’ could not be found. Are you missing a using directive or an assembly reference?
any ideas? Thanks.