Пример #1
0
        public static TAction CreateTrigger(Enum trigger)
        {
            var triggerBool = new TriggerBool <TAction, TState>();
            var action      = Activator.CreateInstance <TAction>();

            triggerBool._trigger = trigger;

            action.Invoke = triggerBool.OnInvoke;
            action.DoNext = triggerBool.DoNext;
            action.Type   = $"Trigger bool {trigger}";
            return(action);
        }
Пример #2
0
 protected static TAction SetTrigger <TAction>(Enum trigger) where TAction : UniduxAction <TState>
 {
     return(TriggerBool <TAction, TState> .CreateTrigger(trigger));
 }