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