public IEnumerator CountDown(int seconds) { DeactivateAllCars(); gameMode.enabled = false; gameUI.SetResultText(""); for (int i = seconds; i > 0; i--) { gameUI.SetCountDownText(i.ToString()); yield return(new WaitForSeconds(1)); } gameUI.SetCountDownText("GO"); yield return(new WaitForSeconds(1)); gameUI.SetCountDownText(""); gameMode.enabled = true; ActivateAllCars(); }