Exemple #1
0
    public void OnAddQuestionBtn()
    {
        TestCreatorAnswerEntry answer = Instantiate(m_answerEntry, m_questionArea.transform);

        answer.SetQuestion(this);
        m_answers.Add(answer);
    }
Exemple #2
0
    public void AddAnswer(string answerName, bool isRight)
    {
        TestCreatorAnswerEntry answer = Instantiate(m_answerEntry, m_questionArea.transform);

        answer.SetQuestion(this);
        answer.m_isRight.isOn = isRight;
        answer.m_text.text    = answerName;
        m_answers.Add(answer);
    }