Ejemplo n.º 1
0
    public virtual void ContinueStory()
    {
        ChoicePanel.gameObject.SetActive(false);
        DialoguePanel.gameObject.SetActive(false);

        if (!story)
        {
            mostRecentItem = "";
            return;
        }

        if (story.canContinue)
        {
            mostRecentItem = story.Continue();
            DialoguePanel.SetText(mostRecentItem);
            DialoguePanel.gameObject.SetActive(true);
        }
        else if (story.currentChoices.Count > 0)
        {
            ChoicePanel.SetButtons(story.currentChoices.ToArray());
            ChoicePanel.SetText(mostRecentItem);
            ChoicePanel.gameObject.SetActive(true);
        }
        else
        {
            mostRecentItem = "";
            StopDialogue();
        }
    }