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