private void OnQuestionDisplay(object arg1, object arg2) { ShowQuestionPanel(); Question question = m_QuestionController.CurrentQuestion; QuestionContainer questionContainer = XMLManager.Instance.QuestionContainer; m_QuestionText.text = question.Name; m_AnswerButton1.text = questionContainer.GetAnswer1(question); m_AnswerButton2.text = questionContainer.GetAnswer2(question); m_AnswerButton3.text = questionContainer.GetAnswer3(question); #if UNITY_EDITOR m_CheatText[questionContainer.FindCorrectAnswer(question) - 1].gameObject.SetActive(true); #endif }