Ejemplo n.º 1
0
 void activateQuestion(ProfQuestion q)
 {
     //mp.Pause ();
     this.changeQuestionText(q);
     this.showQuestions();
     q.disableTime();
 }
Ejemplo n.º 2
0
    void changeQuestionText(ProfQuestion q)
    {
        button0.GetComponentInChildren <Text> ().text = q.getAnswer(0);
        button1.GetComponentInChildren <Text> ().text = q.getAnswer(1);
        button2.GetComponentInChildren <Text> ().text = q.getAnswer(2);
        button3.GetComponentInChildren <Text> ().text = q.getAnswer(3);

        actualQuestion.text = q.questionText;
    }
Ejemplo n.º 3
0
    void Awake()
    {
        this.hideQuestions();

        qArray = new ProfQuestion[1];



        qArray[0] = new ProfQuestion("How many compressions and breaths per CPR cycle?", "30 compressions, 2 breaths.", "15 compressions, 2 breaths.", "40 compressions, 3 breaths.", "20 compressions, 1 breath.", 0);
        //qArray[1] = new Question ("Okay, here's the second question. Do you want to be here?", "Yes", "No", "help me i've been stuck on this project for 3 years help", "i want to go to las vegas", 1, 20);
    }