//pause function to show the pause panel public void DoPause() { isPaused = true; Time.timeScale = 0; showPanels.ShowPausePanel(); }