private void Awake() { jugador = GameObject.Find("Player").GetComponent <Jugador>(); interfaz = GameObject.Find("Interfaz_De_Partida"); iVida = interfaz.transform.Find("Nivel_Vida").gameObject.transform.Find("Imagen").gameObject.GetComponent <Image>(); iTextos = interfaz.transform.Find("Textos").GetComponentInChildren <TextMeshProUGUI>(); iBaul = jugador.baulMateriales; iCara = interfaz.transform.Find("Cara_Personaje").GetComponent <Image>(); iCara.sprite = jugador.caraActual; iRadiacionTexto = interfaz.transform.Find("Nivel_Radiacion").GetComponentInChildren <TextMeshProUGUI>(); /*Mostar: * vida * hablar * baul * cara * radiacion */ }
float timerRadiacion = 0; //Timer para tRadiacion private void Awake() { baulMateriales = GameObject.Find("Baul_Materiales").GetComponent <BaulMateriales>(); }