You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When adding .PermitDynamicIf, call .PermitTriggers throw System.NullReferenceException:“Object reference not set to an instance of an object.”
class ParameterConversion
public static TArg Unpack(object[] args, int index)
{
return (TArg)Unpack(args, typeof(TArg), index); // args=[]
}
The text was updated successfully, but these errors were encountered:
var sm = new StateMachine<State, Trigger>(State.A);
var trigger = sm.SetTriggerParameters<int>(Trigger.X);
sm.Configure(State.A)
.PermitDynamicIf(trigger, (i) => i == 1 ? State.C : State.B,(i)=>i==1?true:false) ;
foreach(var permittedTrigger in sm.GetPermittedTriggers())
{
}
sm.Fire(trigger, 1);
But there is no error when modified as shown below
When adding .PermitDynamicIf, call .PermitTriggers throw System.NullReferenceException:“Object reference not set to an instance of an object.”
class ParameterConversion
public static TArg Unpack(object[] args, int index)
{
return (TArg)Unpack(args, typeof(TArg), index); // args=[]
}
The text was updated successfully, but these errors were encountered: