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