Пример #1
0
 void Start()
 {
     camaraPrincipal = GameObject.Find("Main Camera").GetComponent <CamaraController>();
     sonidos         = GameObject.Find("Main Camera").GetComponent <SonidosJuego>();
     puerta          = GameObject.Find("Puerta").GetComponent <PuertaController>();
     elegirDestino();
 }
Пример #2
0
    // Start is called before the first frame update
    void Start()
    {
        sonidosJuego = GameObject.Find("Main Camera").GetComponent <SonidosJuego>();

        pantallaNegra = GetComponent <Image>();
        StartCoroutine(transicionCamara(true));
    }
Пример #3
0
    // Start is called before the first frame update
    void Start()
    {
        camara = GameObject.Find("Main Camera").GetComponent <CamaraController>();
        sprite = GetComponent <Image>();

        sonidoCamara = GameObject.Find("Main Camera").GetComponent <SonidosJuego>();
    }
Пример #4
0
    // Start is called before the first frame update
    void Start()
    {
        sonidosJuego    = GameObject.Find("Main Camera").GetComponent <SonidosJuego>();
        textoNoche.text = "Noche " + PlayerPrefs.GetInt("nocheActual");

        pantallaNegra = GetComponent <Image>();
        StartCoroutine(transicionCamara(true));
    }