IEnumerator LevelCountDown(float timeCountDown) { yield return(new WaitForSeconds(timeCountDown)); Debug.LogWarning("Level Over"); gameProcess = EGameProcess.END; //TODO Do Something }
void Start() { gameProcess = EGameProcess.PROCEED; StartCoroutine(LevelCountDown(gameTimer)); }