public void StartDialogue(AIDialogue aiDialogue, Dialogue newDialogue)
        {
            GetComponent <ActionScheduler>().StartAction(this);

            _aiDialogue        = aiDialogue;
            dialogue           = newDialogue;
            _node              = dialogue.GetRootNode();
            _isOpeningDialogue = true;
        }
Exemple #2
0
        public void StartDialogue(AIConversant conversant, Dialogue newDialogue)
        {
            currentConversant = conversant;
            currentDialogue   = newDialogue;
            currentNode       = currentDialogue.GetRootNode();

            if (currentNode.IsPlayerSpeaking())
            {
                playerAnimator.SetBool("IsTalking", true);
                currentConversant.TalkAnimation(false);
            }
            else
            {
                playerAnimator.SetBool("IsTalking", false);
                currentConversant.TalkAnimation(true);
            }

            TriggerEnterAction();
            onConversationUpdated();
        }