Пример #1
0
 public override void OnExit(MethodArguments args)
 {
     ++Exits;
     OnExitAction?.Invoke(args);
     InspectInstance?.Invoke(Instance);
     Assert.AreEqual(MethodName, args.MethodName, "OnExit - MethodNames don't match");
 }
Пример #2
0
 public void OnExit()
 {
     if (OnExitAction != null)
     {
         OnExitAction.Invoke();
     }
 }
Пример #3
0
        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);
        }
Пример #4
0
 public virtual void Exit()
 {
     OnExitAction?.Invoke();
 }