Пример #1
0
    private void createQuestion()
    {
        if (difficult) { // !
            isPicture = true;
            currentQuestion = new QuestionPicture (questionList [++index]);

        }else {
            if(Mathf.Round(Random.value) == 0) {
                isPicture = true;
                hud.switchToPicture();
                currentQuestion = new QuestionPicture (questionList [++index]);

            }else{
                isPicture = false;
                hud.switchToText();
                currentTQuestion = new QuestionText(questionList[++index]);
            }
        }
    }
Пример #2
0
 private void createQuestion()
 {
     if (difficult)           // !
     {
         isPicture       = true;
         currentQuestion = new QuestionPicture(questionList [++index]);
     }
     else
     {
         if (Mathf.Round(Random.value) == 0)
         {
             isPicture = true;
             hud.switchToPicture();
             currentQuestion = new QuestionPicture(questionList [++index]);
         }
         else
         {
             isPicture = false;
             hud.switchToText();
             currentTQuestion = new QuestionText(questionList[++index]);
         }
     }
 }