private void Start() { m_DataController = FindObjectOfType <DataController>(); m_CurrentChoicesData = m_DataController.GetCurrentChoicesData(); m_QuestionPool = m_CurrentChoicesData.Questions; m_ConsequenceScript = GetComponent <ConsequencesScript>(); m_QuestionIndex = 0; ShowChoices(); }
public void DetermineConsequence(ChoicesData choices, int consequence) { for (int i = 0; i < choices.Questions.Length; i++) { if (consequence == choices.Questions[i].id) { choices.Questions[i].isUnlocked = true; break; } } }
public void Setup(ChoicesData data) { choicesData = data; decisionText.text = choicesData.optionText; }