Ejemplo n.º 1
0
    public void setNewQuestionUI(QuestionData question)
    {
        currentQuestion = question;
        ClearAnswerButtons();

        currentQuestion.SuffleAnswerOrder();

        //set answer buttons by question type
        if (IsImageQuestion(currentQuestion))
        {
            //set up images to button sprites based on the inputted text from question answertext
            EnableAndSetImageQuestionButtons(currentQuestion.answers);
        }
        else
        {
            //set Text only Question
            EnableButtonAndSetQuestionTextButtons(currentQuestion.answers);
        }
        questionTextUI.SetQuestionText(currentQuestion.questionText);
    }