Hello I have a pausing script whenever the game is disturbed
public static bool isPaused;
public GameObject pauseMenuUI;
void Start()
{
isPaused = false;
Time.timeScale = 1;
pausedMenuUI.SetActive(false);
}
public void GamePause()
{
isPaused = !isPaused;
if (isPaused)
Time.timeScale = 0;
pauseMenuUI.SetActive(true);
if (!isPaused)
Time.timeScale = 1;
}
void OnApplicationPause ()
{
pauseMenuUI.SetActive(true);
isPaused = true;
Time.timeScale = 0;
}
public void Resume()
{
pauseMenuUI.SetActive(false);
Time.timeScale = 1;
isPaused = false;
}
but I don’t want to pause or have the pause menu to occur when the game over menu comes up
void PlayExplosion()
{
GameObject explosion = (GameObject)Instantiate(ExplosionGo);
explosion.transform.position = transform.position;
gameOverText.SetActive(true);
restartButton.SetActive(true);
MenuButton.SetActive(true);
{
I need help with not having the pause menu to come up when it’s game over.