Beispiel #1
0
    public Question_Data(string category, string type, string difficulty, string questionText, int numberOfAnswers)
    {
        this._category = category;

        this._type = type;

        this._difficulty = difficulty;

        this._questionText = questionText;

        var answers = new Answer_Data[numberOfAnswers];

        for (int i = 0; i < numberOfAnswers; i++)
        {
            answers[i] = new Answer_Data();
        }

        this._answers = answers;
    }
Beispiel #2
0
 public void SetUp(Answer_Data data)
 {
     answerData      = data;
     answerText.text = answerData._answerText;
 }