IEnumerator CountdownToStart() { //player.GetComponent<playermovment>().enabled = false; while (countdoenTimer > 0) { countdownDisplay.text = countdoenTimer.ToString(); yield return(new WaitForSeconds(1f)); countdoenTimer--; } countdownDisplay.text = "GO!"; //shouls restart life and clock StartTimer.beginTimer(); //_freezer.FreezeAndRestartScene(3f); yield return(new WaitForSeconds(1f)); countdownDisplay.gameObject.SetActive(false); player.GetComponent <playermovment>().enabled = true; }