Exemplo n.º 1
0
 public void ShowNextWaveBtn()
 {
     if (stateSystem.tutorialEnabled == true && (stateSystem.GetTutorialState() == StateSystem.TutorialState.Intro1))
     {
         stateSystem.SetGameState(StateSystem.GameState.Tutorial);
     }
     else if ((waveSystem.IsDashUnlockWave()) && (stateSystem.GetTutorialState() != StateSystem.TutorialState.Dash3))
     {
         stateSystem.SetTutorialState(StateSystem.TutorialState.Dash1);
         stateSystem.SetGameState(StateSystem.GameState.Tutorial);
     }
     else if ((waveSystem.IsSpell1UnlockWave()) && (stateSystem.GetTutorialState() != StateSystem.TutorialState.FirstSpell3))
     {
         stateSystem.SetTutorialState(StateSystem.TutorialState.FirstSpell1);
         stateSystem.SetGameState(StateSystem.GameState.Tutorial);
     }
     else if ((waveSystem.IsSpell2UnlockWave()) && (stateSystem.GetTutorialState() != StateSystem.TutorialState.SecondSpell3))
     {
         stateSystem.SetTutorialState(StateSystem.TutorialState.SecondSpell1);
         stateSystem.SetGameState(StateSystem.GameState.Tutorial);
     }
     else
     {
         allowInputNext = true;
         popUpHUD.SetActive(true);
         txtNextWave.text = gameManager.GetNextWaveInfo();
     }
 }