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