public override void OnExit(MethodArguments args) { ++Exits; OnExitAction?.Invoke(args); InspectInstance?.Invoke(Instance); Assert.AreEqual(MethodName, args.MethodName, "OnExit - MethodNames don't match"); }
public void OnExit() { if (OnExitAction != null) { OnExitAction.Invoke(); } }
public void ChangeState(T targetState, object args = null) { var isCanEnter = IsCanEnter == null ? true : IsCanEnter.Invoke(targetState); if (isCanEnter == false) { return; } OnExitAction?.Invoke(CurState); StartTime = Time.time; Args = args; OnEnterAction?.Invoke(CurState = targetState); }
public virtual void Exit() { OnExitAction?.Invoke(); }