Exemplo n.º 1
0
    private IEnumerator StartGameCoroutine(int levels)
    {
        StatisticsMaker.Reset();
        UIController.GetMenu <GameMenu>().question.text = "";
        for (int i = 0; i < levels; i++)
        {
            yield return(levelDesigner.CreateLevel(i));

            yield return(levelDesigner.WaitAnswer());

            yield return(levelDesigner.RemoveLevel());
        }
        GameMenu.ShowStat();
    }