示例#1
0
    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();
    }
示例#2
0
 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;
         }
     }
 }
示例#3
0
    public void Setup(ChoicesData data)
    {
        choicesData = data;

        decisionText.text = choicesData.optionText;
    }