Ejemplo n.º 1
0
 // 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>();
 }
Ejemplo n.º 2
0
    // 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>();
    }
Ejemplo n.º 3
0
    // 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>();
    }
Ejemplo n.º 4
0
 // Start is called before the first frame update
 void Start()
 {
     enemigosPresentes = GameObject.Find("Sala Principal").GetComponent <PresenciaEnemigos>();
     spritePatoEnSala  = GetComponent <SpriteRenderer>();
     sonidosPatoEnSala = GetComponent <AudioSource>();
 }