示例#1
0
    public void DisplayNextSentence()
    {
        if (sentences.Count == 0)
        {
            EndDialogue();

            return;
        }

        if (personagem != null)
        {
            personagem.nExpressao = expressoes.Dequeue();

            personagem.ChangeSprite();
        }

        if (anima != null)
        {
            anima.ResetTrigger("next");
        }



        string sentence = sentences.Dequeue();

        StopAllCoroutines();
        StartCoroutine(TypeSentence(sentence));
    }