// Update is called once per frame void Update() { if (!started) { started = true; CutsceneControl.Initialize(startCutscene, 6); } }
//private bool sceneStarting = true; // Whether or not the scene is still fading in. public void Start() { // Set the texture so that it is the the size of the screen and covers it. guiTexture.pixelInset = new Rect(-1000, -1000, 5000, 5000); GameObject g = GameObject.Find ("Sihir"); hp = g.GetComponent<Hpsih> (); GameObject c = GameObject.Find ("Opening Cutscene"); cc = c.GetComponent<CutsceneControl> (); }
// Use this for initialization void Start() { //O mapa esta desabilitado. map.renderer.enabled = false; nuvens[0].renderer.enabled = false; nuvens[1].renderer.enabled = false; nuvens[2].renderer.enabled = false; nuvens[3].renderer.enabled = false; GameObject c = GameObject.Find("Opening Cutscene"); opening = c.GetComponent <CutsceneControl> (); GameObject f = GameObject.Find("Frags"); fr2 = f.GetComponent <SeusFragmentos> (); }
// Use this for initialization void Start() { //O mapa esta desabilitado. map.renderer.enabled = false; nuvens[0].renderer.enabled = false; nuvens[1].renderer.enabled = false; nuvens[2].renderer.enabled = false; nuvens[3].renderer.enabled = false; GameObject c = GameObject.Find ("Opening Cutscene"); opening = c.GetComponent<CutsceneControl> (); GameObject f = GameObject.Find ("Frags"); fr2 = f.GetComponent<SeusFragmentos> (); }
/*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);*/ }
public void PlayGame() { CutsceneControl.Initialize(startCutscene, 6); started = true; }
// Use this for initialization void Start() { //Os gameobjects a seguir sao inicializados para conseguir componentes de outros scripts utilizando //as variaveis ja declaradas. GameObject f = GameObject.Find ("screenFader"); fd = f.GetComponent<Fade> (); GameObject h = GameObject.Find ("OpeningHistory"); history = h.GetComponent<HistoriaControl> (); GameObject i = GameObject.Find ("inventario 2"); pause = i.GetComponent<Inventario> (); GameObject c = GameObject.Find ("Opening Cutscene"); cutsc = c.GetComponent<CutsceneControl> (); GameObject v = GameObject.Find ("Sihir"); SihirSounds = v.GetComponent<SihirSounds> (); //No inicio do jogo apenas a vida maxima dela esta ativada.. maxH.SetActive (true); AlmostMaxH.SetActive (false); HalfH.SetActive (false); AlmostEmptyH.SetActive (false); Empty.SetActive (false); }