Example #1
0
 //Pauses the game and timescale
 public void pauseGame()
 {
     Time.timeScale = 0.0001F;
     PanelPause.SetActive(true);
 }
Example #2
0
 //resumes the game from the paused state
 public void resumeGame()
 {
     Time.timeScale = 1;
     PanelPause.SetActive(false);
 }
Example #3
0
 public void Unpause()
 {
     Time.timeScale = 1f;
     PanelPause.SetActive(false);
     JoystickCanvas.SetActive(true);
 }