Ejemplo n.º 1
0
 /// <summary>
 /// Instantiate the buttons
 /// </summary>
 private void Start()
 {
     questionController = FindObjectOfType <QuestionController>();
     m_QuestionList     = questionController.m_QuestionList;
     if (layout == null || m_QuestionList == null)
     {
         return;
     }
     LoadQuestion(questionController.currentQuestionIndex);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// When the user clicks the button, change the scene
 /// </summary>
 public void ButtonClicked()
 {
     questionController = FindObjectOfType <QuestionController>();
     questionController.NextQuestion(m_AnswerData.nextQuestion);
 }