예제 #1
0
    void EnterDialogue()
    {
        if (!DialogueControll.instance.activeDialogue)
        {
            GameObject.FindGameObjectWithTag("Player").GetComponent <PlayerMovement>().FreezeMovement();
            dialogueControl.SetDialogue(conversations[dialogueIdx], this);
            dialogueControl.activeDialogue = true;
        }

        dialogueControl.AdvanceConversation();
    }
예제 #2
0
    void EnterDialogue()
    {
        triggerAmount--;
        if (dialogueIdx < conversations.Length)
        {
            if (!dialogueControl.HasActiveDialogue() || endsCurrentDialogue)
            {
                if (dialogueControl.HasActiveDialogue())
                {
                    dialogueControl.EndDialogue();
                }

                dialogueControl.SetDialogue(conversations[dialogueIdx]);
                dialogueControl.SetTrigger(this);
                //dialogueControl.SetActiveDialogue(true);
                dialogueControl.AdvanceConversation();
            }
        }
    }