// Start is called before the first frame update void Start() { coco = GameObject.Find("Coco").GetComponent <CocoControl>(); cambiaSprite = GameObject.Find("Lugares").GetComponent <SpriteHabitaciones>(); presenciaEnemigos = GetComponent <PresenciaEnemigos>(); }
// Start is called before the first frame update void Start() { coco = GameObject.Find("Coco").GetComponent <CocoControl>(); pato = GameObject.Find("Pato").GetComponent <PatoControl>(); camara = GameObject.Find("Main Camera").GetComponent <CamaraController>(); cambiaSprite = GameObject.Find("Lugares").GetComponent <SpriteHabitaciones>(); presenciaEnemigos = GetComponent <PresenciaEnemigos>(); }