Ejemplo n.º 1
0
 void Start()
 {
     level              = GameObject.Find("LevelController").GetComponent <LevelController>();
     TheGrid            = level.TheNodes;
     Actual             = TheGrid[(int)level.playerPos.x, (int)level.playerPos.y];
     transform.position = new Vector3(Actual.Position.x, Actual.Position.y, Actual.Position.z + 0.25f);
     IsMoving           = false;
     StatePlayer.GetInitialState(this);
     pause = GameObject.Find("Canvas").transform.Find("Pause Menu").GetComponent <Pause>();
 }