Exemplo n.º 1
0
        public StoryTextEvent(StoryText text)
            : base()
        {
            Type = StoryEventType.Text;

            CurrentText = text;
        }
Exemplo n.º 2
0
        public StoryTextEvent()
            : base()
        {
            Type = StoryEventType.Text;

            CurrentText = new StoryText();
        }
Exemplo n.º 3
0
        public StoryChoiceEvent()
            : base()
        {
            Type = StoryEventType.Choice;

            CurrentText = new StoryText();

            Choices = new List<string>();

            NextID.Clear();
        }
Exemplo n.º 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);
        }
Exemplo n.º 5
0
    void ShowCurrentText(StoryText storyText)
    {
        HideChoiceUI();

        TextName.text = storyText.Name;
        TextStory.text = ResolveTextSize(storyText.Text, LineLength);
    }
Exemplo n.º 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);
    }