void Start() { camaraPrincipal = GameObject.Find("Main Camera").GetComponent <CamaraController>(); sonidos = GameObject.Find("Main Camera").GetComponent <SonidosJuego>(); puerta = GameObject.Find("Puerta").GetComponent <PuertaController>(); elegirDestino(); }
// Start is called before the first frame update void Start() { sonidosJuego = GameObject.Find("Main Camera").GetComponent <SonidosJuego>(); pantallaNegra = GetComponent <Image>(); StartCoroutine(transicionCamara(true)); }
// 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>(); }
// 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)); }