예제 #1
0
 private void TriggerEnterAction()
 {
     if (currentNode != null && currentNode.GetOnEnterAction() != "")
     {
         foreach (DialogueTrigger trigger in currentConversant.GetComponents <DialogueTrigger>())
         {
             trigger.Trigger(currentNode.GetOnEnterAction());
         }
     }
 }
예제 #2
0
 private void TriggerAction(string action)
 {
     if (action == "")
     {
         return;
     }
     foreach (DialogueTrigger trigger in currentConversant.GetComponents <DialogueTrigger>())
     {
         trigger.Trigger(action);
     }
 }
예제 #3
0
        private void TriggerAction(string action)
        {
            if (string.IsNullOrEmpty(action))
            {
                return;
            }

            DialogueTrigger[] triggers = currentConversant.GetComponents <DialogueTrigger>();
            foreach (DialogueTrigger trigger in triggers)
            {
                trigger.Trigger(action);
            }
        }