Exemple #1
0
 public void Defeat()
 {
     defeatImage.SetActive(true);
     leaderboardImage.SetActive(true);
     //am.EventMusic(1);
     GameStatesSwitch.ChangeToGameOverState();
     StartCoroutine(Stop());
 }
Exemple #2
0
 public void InitGame()
 {
     GameStatesSwitch.ChangeToPlayState();
     level1 = true;
     //am.ChangeLevelMusic(1);
     Score.ResetScore();
     SceneManager.LoadScene(1);
 }
Exemple #3
0
 public void MainMenu()
 {
     GameStatesSwitch.ChangeToMainMenuState();
     SceneManager.LoadScene(0);
     level1         = false;
     level2         = false;
     level3         = false;
     Time.timeScale = 1.0f;
 }
Exemple #4
0
 public void Victory()
 {
     if (BossInfo.isBossDead)
     {
         victoryImage.SetActive(true);
         leaderboardImage.SetActive(true);
         GameStatesSwitch.ChangeToGameOverState();
         //am.EventMusic(0);
     }
 }