// 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 }
// Use this for initialization void Start() { gameCS = GameObject.Find("GameControl").GetComponent <gameControlScript>(); //buscar el objeto que tiene el script y cogemos su script }