initial commit
This commit is contained in:
26
Assets/Scripts/Question.cs
Normal file
26
Assets/Scripts/Question.cs
Normal file
@@ -0,0 +1,26 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class Question
|
||||
{
|
||||
public Question(string question, int [] answers)
|
||||
{
|
||||
questionText = question;
|
||||
correctAnswers = answers;
|
||||
}
|
||||
|
||||
private int[] correctAnswers;
|
||||
|
||||
private string questionText;
|
||||
|
||||
public int[] getCorrectAnswers()
|
||||
{
|
||||
return correctAnswers;
|
||||
}
|
||||
|
||||
public string getQuestionText()
|
||||
{
|
||||
return questionText;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user