public void StartGame() { for (int i = 0; i < introTexts.Count; ++i) { narratorText.enqueue(introTexts[i]); } waitingForStartTrigger = true; }
public void askChoice(StoryData.StoryChoice choice, Action postChoiceCallback = null) { for (int i = 0; i < choice.choiceTexts.Count; ++i) { Action callback = null; if (i == choice.choiceTexts.Count - 1) { callback = () => { PlayStory(choice.linkedStory); if (postChoiceCallback != null) { postChoiceCallback(); } }; } playerText.enqueue(choice.choiceTexts[i], callback); } }