Exemple #1
0
    public ConversationAction[] actionsForTriggerType(ActionTrigger.TriggerType type)
    {
        ActionTrigger trigger = (ActionTrigger)triggers[type];

        if (trigger == null)
        {
            return(null);
        }

        return(trigger.actions);
    }
Exemple #2
0
    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);
    }