public ConversationAction[] actionsForTriggerType(ActionTrigger.TriggerType type) { ActionTrigger trigger = (ActionTrigger)triggers[type]; if (trigger == null) { return(null); } return(trigger.actions); }
void ExecuteActionsForTrigger(GameObject localTarget, ActionTrigger.TriggerType type) { CheckPlayerSetup(); NPC npcController = localTarget.GetComponent <NPC> (); ConversationAction[] actions = npcController.actionsForTriggerType(type); if (actions == null) { // Can't do this action return; } controller.RunActions(actions, localTarget); }