Example #1
0
    public void StartDialogue(Dialgoue dialogue)
    {
        animator.SetBool("isActive", true);
        sentences.Clear();

        foreach (string sentence in dialogue.sentences)
        {
            sentences.Enqueue(sentence);
        }

        DisplayNextSentence();
    }
Example #2
0
    public void StartDialogue(Dialgoue dialogue)
    {
        currentDialogueName = dialogue.name;
        animator.SetBool("IsOpen", true);
        sentences.Clear();

        foreach (string sentence in dialogue.sentences)
        {
            sentences.Enqueue(sentence);
        }

        DisplayNextSentence();
    }