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