예제 #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);
 }
예제 #2
0
 /// <summary>
 /// When the user clicks the button, change the scene
 /// </summary>
 public void ButtonClicked()
 {
     questionController = FindObjectOfType <QuestionController>();
     questionController.NextQuestion(m_AnswerData.nextQuestion);
 }