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(); }
public void Retry() { SoundManager.instance.PlaySingle(clickSound); SceneManager.LoadScene(1); showPanels.HideGameOverPanel(); }
public void Restart() { SceneManager.LoadScene(SceneManager.GetActiveScene().name); showPanels.HideGameOverPanel(); Destroy(this.gameObject); }