public void Awake() { opcionesUIJuego = GameCenter.InstanceRef.CanvasUIJuego.GetComponent<OpcionesCanvasUIJuego> (); textoLateral = opcionesUIJuego.panelLateral.GetComponentInChildren<Text>(); textoLateralOpciones = textoLateral.GetComponent<TextoLateralOpciones> (); textoInferior = opcionesUIJuego.panelInferior.GetComponentInChildren<Text>(); textoInferiorOpciones = textoInferior.GetComponent<TextoInferiorOpciones> (); panelPreguntasOpciones = GameObject.Find ("PanelPreguntas").GetComponent<PanelPreguntasOpciones> (); listaPreguntas = opcionesUIJuego.panelInferior.GetComponentInChildren<ScrollRect> ().GetComponent<ListaPreguntas> (); panelObjetosOpciones = opcionesUIJuego.panelObjetos.GetComponent<PanelObjetosOpciones> (); imagenCargando = opcionesUIJuego.imagenCargando.GetComponent<PantallaCarga> (); }
public void Awake() { imagenCargando = GameObject.Find ("ImagenCargando"); panelLateral = GameObject.Find ("PanelLateral"); panelInferior = GameObject.Find ("PanelInferior"); botonDiario = GameObject.Find ("BotonDiario"); panelDirecciones = GameObject.Find ("PanelDirecciones"); panelObjetos = GameObject.Find ("PanelObjetos"); panelLibro = GameObject.Find ("Libro"); textoLateral = panelLateral.GetComponentInChildren<Text>(); textoLateralOpciones = textoLateral.GetComponent<TextoLateralOpciones> (); textoInferior = panelInferior.GetComponentInChildren<Text>(); textoInferiorOpciones = textoInferior.GetComponent<TextoInferiorOpciones> (); panelPreguntasOpciones = GameObject.Find ("PanelPreguntas").GetComponent<PanelPreguntasOpciones> (); listaPreguntas = panelInferior.GetComponentInChildren<ScrollRect> ().GetComponent<ListaPreguntas> (); panelObjetosOpciones = panelObjetos.GetComponent<PanelObjetosOpciones> (); }