Esempio n. 1
0
 public void UnPause()
 {
     //Set time.timescale to 1, this will cause animations and physics to continue updating at regular speed
     Time.timeScale = 1;
     //call the HidePausePanel function of the ShowPanels script
     showPanels.HideGameOverPanel();
 }
 public void HideGameoverPanel()
 {
     showPanels.HideGameOverPanel();
     showPanels.ShowMenu();
     FadeIn();
 }
Esempio n. 3
0
 public void Retry()
 {
     SoundManager.instance.PlaySingle(clickSound);
     SceneManager.LoadScene(1);
     showPanels.HideGameOverPanel();
 }
Esempio n. 4
0
 public void Restart()
 {
     SceneManager.LoadScene(SceneManager.GetActiveScene().name);
     showPanels.HideGameOverPanel();
     Destroy(this.gameObject);
 }