private void TriggerEnterAction() { if (currentNode != null && currentNode.GetOnEnterAction() != "") { foreach (DialogueTrigger trigger in currentConversant.GetComponents <DialogueTrigger>()) { trigger.Trigger(currentNode.GetOnEnterAction()); } } }
private void TriggerAction(string action) { if (action == "") { return; } foreach (DialogueTrigger trigger in currentConversant.GetComponents <DialogueTrigger>()) { trigger.Trigger(action); } }
private void TriggerAction(string action) { if (string.IsNullOrEmpty(action)) { return; } DialogueTrigger[] triggers = currentConversant.GetComponents <DialogueTrigger>(); foreach (DialogueTrigger trigger in triggers) { trigger.Trigger(action); } }