@@ -406,17 +406,29 @@ public static partial class FsmUtil
406406 /// <inheritdoc cref="ChangeTransition(PlayMakerFSM, string, string, string)"/>
407407 [ PublicAPI ]
408408 [ Obsolete ( "Use method `ChangeTransition(PlayMakerFSM, string, string, string)` instead!" ) ]
409+ #if OLD_HK_VERSION_HAVE_FALSE_WHEN_MAPI_UPDATED
410+ public static void ChangeFsmTransition ( this PlayMakerFSM fsm , string stateName , string eventName , string toState ) => ChangeTransition ( fsm , stateName , eventName , toState ) ;
411+ #else
409412 public static bool ChangeFsmTransition ( this PlayMakerFSM fsm , string stateName , string eventName , string toState ) => ChangeTransition ( fsm , stateName , eventName , toState ) ;
413+ #endif
410414
411415 /// <inheritdoc cref="ChangeTransition(Fsm, string, string, string)"/>
412416 [ PublicAPI ]
413417 [ Obsolete ( "Use method `ChangeTransition(Fsm, string, string, string)` instead!" ) ]
418+ #if OLD_HK_VERSION_HAVE_FALSE_WHEN_MAPI_UPDATED
419+ public static void ChangeFsmTransition ( this Fsm fsm , string stateName , string eventName , string toState ) => ChangeTransition ( fsm , stateName , eventName , toState ) ;
420+ #else
414421 public static bool ChangeFsmTransition ( this Fsm fsm , string stateName , string eventName , string toState ) => ChangeTransition ( fsm , stateName , eventName , toState ) ;
422+ #endif
415423
416424 /// <inheritdoc cref="ChangeTransition(FsmState, string, string)"/>
417425 [ PublicAPI ]
418426 [ Obsolete ( "Use method `ChangeTransition(FsmState, string, string)` instead!" ) ]
427+ #if OLD_HK_VERSION_HAVE_FALSE_WHEN_MAPI_UPDATED
428+ public static void ChangeFsmTransition ( this FsmState state , string eventName , string toState ) => ChangeTransition ( state , eventName , toState ) ;
429+ #else
419430 public static bool ChangeFsmTransition ( this FsmState state , string eventName , string toState ) => ChangeTransition ( state , eventName , toState ) ;
431+ #endif
420432
421433 /// <inheritdoc cref="ChangeGlobalTransition(PlayMakerFSM, string, string)"/>
422434 [ PublicAPI ]
@@ -506,17 +518,29 @@ public static partial class FsmUtil
506518 /// <inheritdoc cref="RemoveAction(PlayMakerFSM, string, int)"/>
507519 [ PublicAPI ]
508520 [ Obsolete ( "Use method `RemoveAction(PlayMakerFSM, string, int)` instead!" ) ]
521+ #if OLD_HK_VERSION_HAVE_FALSE_WHEN_MAPI_UPDATED
522+ public static void RemoveFsmAction ( this PlayMakerFSM fsm , string stateName , int index ) => RemoveAction ( fsm , stateName , index ) ;
523+ #else
509524 public static bool RemoveFsmAction ( this PlayMakerFSM fsm , string stateName , int index ) => RemoveAction ( fsm , stateName , index ) ;
525+ #endif
510526
511527 /// <inheritdoc cref="RemoveAction(Fsm, string, int)"/>
512528 [ PublicAPI ]
513529 [ Obsolete ( "Use method `RemoveAction(Fsm, string, int)` instead!" ) ]
530+ #if OLD_HK_VERSION_HAVE_FALSE_WHEN_MAPI_UPDATED
531+ public static void RemoveFsmAction ( this Fsm fsm , string stateName , int index ) => RemoveAction ( fsm , stateName , index ) ;
532+ #else
514533 public static bool RemoveFsmAction ( this Fsm fsm , string stateName , int index ) => RemoveAction ( fsm , stateName , index ) ;
534+ #endif
515535
516536 /// <inheritdoc cref="RemoveAction(FsmState, int)"/>
517537 [ PublicAPI ]
518538 [ Obsolete ( "Use method `RemoveAction(FsmState, int)` instead!" ) ]
539+ #if OLD_HK_VERSION_HAVE_FALSE_WHEN_MAPI_UPDATED
540+ public static void RemoveFsmAction ( this FsmState state , int index ) => RemoveAction ( state , index ) ;
541+ #else
519542 public static bool RemoveFsmAction ( this FsmState state , int index ) => RemoveAction ( state , index ) ;
543+ #endif
520544
521545 /// <inheritdoc cref="RemoveActionsOfType{TAction}(PlayMakerFSM)"/>
522546 [ PublicAPI ]
0 commit comments