// Use this for initialization
 void Start()
 {
     animator = GetComponent <Animator> ();
     rb       = GetComponent <Rigidbody2D> ();
     gameCS   = GameObject.Find("GameControl").GetComponent <gameControlScript>();      //buscar el objeto que tiene el script y cogemos su script
 }
예제 #2
0
 // Use this for initialization
 void Start()
 {
     gameCS = GameObject.Find("GameControl").GetComponent <gameControlScript>();        //buscar el objeto que tiene el script y cogemos su script
 }