// Update is called once per frame void Update() { if (entraGUI) { bool acao = Input.GetButtonDown("acao"); bool menuEAux = Input.GetButtonDown("menu e auxiliar"); if (acao || menuEAux) { if (!foiParaArmagedom) { apC.fase = 4; } else { apC.fase++; } } if (apC == null) { animator.SetBool("travar", false); oEncontro.voltarParaPasseio(); Destroy(GetComponent <usaItemEmLuta>()); Destroy(this); } } }
void acendaAsLuzes() { GetComponent <pretoMorte>().entrando = false; encontros e = Terra.GetComponent <encontros>(); if (e) { e.voltarParaPasseio(); } //Invoke("depoisDeAcender",0.5f); passoDaMorte = 7; }