// Start is called before the first frame update void Start() { enemigosPresentes = GameObject.Find("Sala Principal").GetComponent <PresenciaEnemigos>(); puertaBC = GetComponent <BoxCollider2D>(); spritePuerta = GetComponent <SpriteRenderer>(); sonidosPuerta = GetComponent <AudioSource>(); }
// 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>(); }
// Start is called before the first frame update void Start() { enemigosPresentes = GameObject.Find("Sala Principal").GetComponent <PresenciaEnemigos>(); spritePatoEnSala = GetComponent <SpriteRenderer>(); sonidosPatoEnSala = GetComponent <AudioSource>(); }