public void PauseGame() { if (!isPaused) { deathMenu.ToggleEndMenu(score); isPaused = true; } else { deathMenu.UnToggleEndMenu(); isPaused = false; } }