public static GameObject CreateActionGroup(TriggerActionGroupDescriptor descriptor) { GameObject gameObject = new GameObject(descriptor.ActionGroupName); gameObject.AddComponent <TriggerActionGroup>()._triggerActionGroupDescriptor = descriptor; return(gameObject); }
protected void TriggerActionGroup(TriggerActionGroupDescriptor triggerActionGroup, ExecutionContext context) { _triggerActionGroups[triggerActionGroup.ActionGroupName].Trigger(context); }