// Use this for initialization void Start() { LibreriaS = GameObject.Find("Game Manager").GetComponent <libreriaDeScrips>(); SelectorContacto = GameObject.Find("equipo/equipo/celular/Selector").GetComponent <RectTransform>(); SelectorOpciones = GameObject.Find("equipo/equipo/celular/Selector opciones").GetComponent <RectTransform>(); SelectorOpciones.GetComponent <Image>().enabled = false; SelectorContacto.GetComponent <Image>().enabled = false; tabla[0] = 0; tabla[1] = 0; General = GameObject.Find("equipo/equipo/celular"); BoxText = GameObject.Find("equipo/equipo/Box Texto"); Mapa = GameObject.Find("equipo/equipo/Mapa"); // DesactivarObj(); MapaAScript = new mapa(); }
public Evento(tipoEvento tipo, mapa map) { Imagen = "ms-appx:///Assets/Imagenes/eventoIcon.png"; switch (tipo) { case tipoEvento.roboBanco: Tipo = "Robo a banco"; break; case tipoEvento.huida: Tipo = "Huida"; break; case tipoEvento.rescate: Tipo = "Rescate"; break; default: break; } switch (map) { case mapa.fuencacity: Mapa = "Fuencacity"; break; case mapa.berlin: Mapa = "Berlín"; break; case mapa.chicago: Mapa = "Chicago"; break; default: break; } }
/*public GameObject armor; public GameObject luva; public GameObject legs; public GameObject helmet; public GameObject bota_banana;*/ void Awake() { //guiTexture.enabled = false; //guiTexture.pixelInset = new Rect (-410, -283, 824, 568); //Mouse e inventario desabilitado. Screen.showCursor = false; gameObject.renderer.enabled = false; menuhistoria.renderer.enabled = false; menuopcoes.renderer.enabled = false; menusalvar.renderer.enabled = false; //GameObject g = GameObject.Find ("Sihir"); //hp = g.GetComponent<Hpsih> (); //GameObject t = GameObject.Find ("MagicTextures"); //mt = t.GetComponent<MagicTextures> (); //Os gameobjects a seguir sao inicializados para conseguir componentes de outros scripts utilizando //as variaveis ja declaradas. GameObject p = GameObject.Find ("Magic"); unlc = p.GetComponent<UnlockToInventary> (); GameObject u2 = GameObject.Find ("UnObj"); un2 = u2.GetComponent<Unlockeds> (); RealCamera = GameObject.Find ("RealCamera"); Pause = GameObject.Find ("Pause"); GameObject m = GameObject.Find ("MapCamera"); map = m.GetComponent<mapa> (); GameObject c = GameObject.Find ("Opening Cutscene"); opening = c.GetComponent<CutsceneControl> (); GameObject f = GameObject.Find ("Frags"); fr2 = f.GetComponent<SeusFragmentos> (); //Icones dos feitiços desabilitados. Air.SetActive (false); BC.SetActive (false); Ice.SetActive (false); Fire.SetActive (false); light.SetActive (false); Wood.SetActive (false); Earth.SetActive (false); Water.SetActive (false); Void.SetActive (false); TimeSpace.SetActive (false); /*armor.SetActive (false); legs.SetActive (false); luva.SetActive (false); bota_banana.SetActive (false); helmet.SetActive (false);*/ }