Beispiel #1
0
        public StoryTextEvent(StoryText text)
            : base()
        {
            Type = StoryEventType.Text;

            CurrentText = text;
        }
Beispiel #2
0
        public StoryTextEvent()
            : base()
        {
            Type = StoryEventType.Text;

            CurrentText = new StoryText();
        }
Beispiel #3
0
        public StoryChoiceEvent()
            : base()
        {
            Type = StoryEventType.Choice;

            CurrentText = new StoryText();

            Choices = new List<string>();

            NextID.Clear();
        }
Beispiel #4
0
        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);
        }
Beispiel #5
0
    void ShowCurrentText(StoryText storyText)
    {
        HideChoiceUI();

        TextName.text = storyText.Name;
        TextStory.text = ResolveTextSize(storyText.Text, LineLength);
    }
Beispiel #6
0
    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);
    }