public void Quit() { FindObjectOfType <AudioManager>().Stop("Game"); FindObjectOfType <AudioManager>().Play("Title"); SceneMaster.OpenMainMenu(); PausePanel.SetActive(false); gameoverpanel.SetActive(false); }
private void Update() { if (aniMan.WasHit && timer > 100) { aniMan.WasHit = false; timer = 0; } timer++; if (!IsAlive) { SceneMaster.OpenMainMenu(); } }
public void QuitGame() { SceneMaster.OpenMainMenu(); }