// Update is called once per frame void Update() { if (pauseMenu.isPaused) { return; } countingTime -= Time.deltaTime; if (countingTime <= 0) { countingTime = 0; health.KillPlayer(); //gameOverScreen.SetActive(true); //player.gameObject.SetActive(false); } text.text = "" + Mathf.Round(countingTime); }