diff --git a/src/FsmUtil.cs b/src/FsmUtil.cs index 34ca76b..48ca1cf 100644 --- a/src/FsmUtil.cs +++ b/src/FsmUtil.cs @@ -491,7 +491,11 @@ public static void AddMethod(this FsmState state, Action method) [PublicAPI] public static void AddMethod(this FsmState state, Action method, bool everyFrame = false) { - LambdaAction action = new LambdaAction { Method = method }; + LambdaAction action = new() + { + Method = method, + EveryFrame = everyFrame, + }; state.AddAction(action); } @@ -682,6 +686,7 @@ public static void InsertMethod(this FsmState state, int index, ActionThe fsm state /// The method that will be invoked /// The index to place the action in + /// Whether to execute 'method' on every update frame [PublicAPI] public static void InsertMethod(this FsmState state, Action method, int index, bool everyFrame = false) => state.InsertMethod(index, method, everyFrame); @@ -689,7 +694,11 @@ public static void InsertMethod(this FsmState state, int index, Action