Esempio n. 1
0
    IEnumerator LevelCountDown(float timeCountDown)
    {
        yield return(new WaitForSeconds(timeCountDown));

        Debug.LogWarning("Level Over");
        gameProcess = EGameProcess.END;

        //TODO Do Something
    }
Esempio n. 2
0
 void Start()
 {
     gameProcess = EGameProcess.PROCEED;
     StartCoroutine(LevelCountDown(gameTimer));
 }