Exemple #1
0
 public void ButtonAccept()
 {
     mManager.ilhaAtiva.GetComponent <Ilha>().missao = true;
     IlhaText.SetText(mManager.ilhaAtiva.GetComponent <Ilha>().textoIlhaMissao);
     panelIlha.SetActive(false);
     panelBattle.SetActive(true);
     gManager.currentState = GameManager.GameState.Battle;
 }
Exemple #2
0
 public void ChamaPanelIlha()
 {
     if (!panelIlha.activeSelf)
     {
         panelIlha.SetActive(true);
         if (!mManager.ilhaAtiva.GetComponent <Ilha>().missao)
         {
             IlhaText.SetText(mManager.ilhaAtiva.GetComponent <Ilha>().textoIlhaNormal);
             buttonAccept.SetActive(true);
             buttonRefuse.SetActive(true);
             buttonOk.SetActive(false);
         }
         else
         {
             IlhaText.SetText(mManager.ilhaAtiva.GetComponent <Ilha>().textoIlhaMissao);
             buttonAccept.SetActive(false);
             buttonRefuse.SetActive(false);
             buttonOk.SetActive(true);
         }
         gManager.currentState = GameManager.GameState.Ilha;
     }
 }