public void UnPause() { //Set isPaused to false isPaused = false; //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.HideGameOver(); }