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); }
protected static TAction SetTrigger <TAction>(Enum trigger) where TAction : UniduxAction <TState> { return(TriggerBool <TAction, TState> .CreateTrigger(trigger)); }