void Update() { if (gameOverMenu1.isActiveAndEnabled) { Time.timeScale = 0; death_state = true; score.text = "Score: " + time.get_total_time().ToString("#.00"); } else { Time.timeScale = 1; death_state = false; } }