void searchObjects() { optionsContoller = GameObject.Find("GamePreferences").GetComponent <OptionsPreferences>(); popUpNewAnimal = GameObject.Find("PopUpAnimalNuevo"); nameOfAnimal = GameObject.Find("TextoAnimal").GetComponent <Text>(); audioController = GameObject.Find("AudioController").GetComponent <ControladorAudio>(); soundOfAnimal = GameObject.Find("TextoSonidoAnimal").GetComponent <Text>(); imageOfAnimalPopUp = GameObject.Find("ImagePopUpAnimal").GetComponent <Image>(); showHidePopUp(false); imagesAnimals = GameObject.FindGameObjectsWithTag("Imagen"); instruction = GameObject.Find("Instruccion"); ocultarImagenes(); }
void Start() { optionsController = GameObject.Find("GamePreferences").GetComponent <OptionsPreferences>(); searchObjects(); EasyTTSUtil.Initialize(EasyTTSUtil.Spain); }