Exemple #1
0
    Librairy.Question getQuestion()
    {
        // go through question list and pull a new question for players
        List <Librairy.Question> questionList = Librairy.getQuestionList();
        int qIndex = 0;

        do
        {
            qIndex = Random.Range(0, questionList.Count);
        }while (questionList[qIndex].isSelected() == true);

        Librairy.pushQuestion(questionList[qIndex].getValue());
        questionList[qIndex].setSelection(true);
        return(questionList[qIndex]);
    }
Exemple #2
0
 void Awake()
 {
     setHost();
     Librairy.createQuestionList();
 }
 public static void setQuestionInfo(string id, string name, Librairy.Question quest)
 {
     questionSelected = quest;
     playerNameTargeted = name;
     playerIDTargeted = id;
 }