public void ShowAnswers(string[] options) { //Build an array of Actions Action[] actions = new Action[options.Length]; for (int i = 0; i < options.Length; i++) { actions[i] = () => RunAnswer(); } AnswerBox.GetComponent <OptionBox>().Populate(options, actions); }
public void RunAnswer() { activeNode.ExecuteNext(activeNode.GetOutputPort("answers " + AnswerBox.GetComponent <OptionBox>().chosen), dialogueContext); }