예제 #1
0
        public override void Execute(BaseEvent baseEvent)
        {
            var actor      = ORKEventTools.GetEventObjectTransform(actorObject, baseEvent);
            var conversant = ORKEventTools.GetEventObjectTransform(conversantObject, baseEvent);

            DialogueManager.PlaySequence(sequence, actor, conversant);
            baseEvent.StepFinished(this.next);
        }
        public override void Execute(BaseEvent baseEvent)
        {
            var conversationTitle = conversationData.GetConversationTitle(baseEvent);
            //Debug.Log("[StartConversationStep] Starting conversation: " + conversationTitle);
            var actor      = ORKEventTools.GetEventObjectTransform(conversationData.actorObject, baseEvent);
            var conversant = ORKEventTools.GetEventObjectTransform(conversationData.conversantObject, baseEvent);

            DialogueManager.StartConversation(conversationTitle, actor, conversant);
            DialogueManager.Instance.StartCoroutine(WaitForConversationEnd(baseEvent));
        }