Exemplo n.º 1
0
 public void Quit()
 {
     Destroy(GameObject.Find("UI"));
     GameLevelManager.resetScore();
     CombatScript.resetHeroLife();
     PlayMusic.StopMusic();
     SceneManager.LoadScene("MainMenu");
     Pause.UnPause();
 }
Exemplo n.º 2
0
    //Once the level has loaded, check if we want to call PlayLevelMusic
    void OnLevelWasLoaded(int level)
    {
        if (level == 1)
        {
            playMusic.StopMusic();
        }
//		if (changeMusicOnStart)
//		{
//			playMusic.PlayLevelMusic ();
//		}
    }