Example #1
0
    void IObserver.OnNotify(object parametr, GAME_EVENTS notificationName)
    {
        switch (notificationName)
        {
        case GAME_EVENTS.BuildTask:
            WordProgressUpdate();
            ProgeressUpdate();
            HideImage();
            break;

        case GAME_EVENTS.LoadedVocabulary:
            LoadTasks();
            BuildTask(0);
            FindObjectOfType <DebugUI>().FillPanel(questions);
            break;

        case GAME_EVENTS.ShowResult:
            ShowImage();
            WordProgressUpdate();
            ShowContext();
            buttonsHandler.SetNextQuestion(() => BuildTask(questionID + 1));
            break;
        }
    }
Example #2
0
 public void SetNextQuestion()
 {
     buttonsHandler.SetNextQuestion(RunNextQuestion);
 }