Exemple #1
0
    IEnumerator GameStart()
    {
        yield return(new WaitForSeconds(2f));

        State = MyGameStatesX.FREETODRAW;
        yield return(new WaitForSeconds(1f));
    }
Exemple #2
0
 // Start is called before the first frame update
 void Start()
 {
     State = MyGameStatesX.START;
     StartCoroutine(GameStart());
 }