// Use this for initialization
 void Start()
 {
     state = GameObject.Find("GameManager").GetComponent<GameManager>().activeState as StateStageOne;
 }
Exemplo n.º 2
0
 void Start()
 {
     gerador = GameObject.Find("Gerador");
     manager = GameObject.Find("GameManager").GetComponent<GameManager>();
     state = manager.activeState as StateStageOne;
     direction = GameObject.Find("Direction");
     // Make the rigid body not change rotation
     rigidbody.freezeRotation = true;
 }