예제 #1
0
    public static GameObject CreateActionGroup(TriggerActionGroupDescriptor descriptor)
    {
        GameObject gameObject = new GameObject(descriptor.ActionGroupName);

        gameObject.AddComponent <TriggerActionGroup>()._triggerActionGroupDescriptor = descriptor;
        return(gameObject);
    }
예제 #2
0
 protected void TriggerActionGroup(TriggerActionGroupDescriptor triggerActionGroup, ExecutionContext context)
 {
     _triggerActionGroups[triggerActionGroup.ActionGroupName].Trigger(context);
 }