public StoryTextEvent(StoryText text) : base() { Type = StoryEventType.Text; CurrentText = text; }
public StoryTextEvent() : base() { Type = StoryEventType.Text; CurrentText = new StoryText(); }
public StoryChoiceEvent() : base() { Type = StoryEventType.Choice; CurrentText = new StoryText(); Choices = new List<string>(); NextID.Clear(); }
public StoryChoiceEvent(StoryText text, List<string> choices) : base() { Type = StoryEventType.Choice; CurrentText = text; Choices = choices; NextID.Clear(); for(int i=0;i<Choices.Count;i++) NextID.Add(0); }
void ShowCurrentText(StoryText storyText) { HideChoiceUI(); TextName.text = storyText.Name; TextStory.text = ResolveTextSize(storyText.Text, LineLength); }
void ShowCurrentChoice(StoryText storyText, List<string> choices) { TextName.text = storyText.Name; TextStory.text = ResolveTextSize(storyText.Text, LineLength); ShowChoiceUI(); currentChoices = choices; string choiceResolved = ResolveChoiceText(currentChoices, choiceSelected); ChoiceText.text = choiceResolved; ResolveChoiceBox(choices); }