private void PrepareDialogs(MindFieldData data) { m_textQuestion.text = data.m_question; m_textAnswerExplanation.text = data.m_explanation; data.ShuffleChoices(); for(int x=0; x<m_textChoices.Length; x++) { MindFieldChoice currentChoice = data.m_choices[x]; m_textChoices[x].SetChoice(currentChoice); m_textChoices[x].SetReward(data.m_reward); if(currentChoice.m_isCorrect) { m_textAnswerLetter.text = m_textChoices[x].GetChoiceLetter(); } } }
/* MindLightModel_Setter ---------------------------------------------------------------------------------------- */ public void StartMindLight(MindFieldData data) { PrepareDialogs(data); ActivatePanelQuestion(); DeactivateBulbAnimation(); }