Esempio n. 1
0
        public void ConversationBehaviour()
        {
            transform.LookAt(source.transform);

            if (this.source != null)
            {
                isTalking = true;
                Conversation conversation = this.source.GetConversation();
                currentNode = conversation.GetRootNode();
                director.DialogueInit(transform, source.transform);
                director.OnSourceDialogue();
            }
            else
            {
                currentNode = null;
                isTalking   = false;
            }

            OnCurrentNodeChanged();
        }