Exemple #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");
 }
Exemple #2
0
 public void OnExit()
 {
     if (OnExitAction != null)
     {
         OnExitAction.Invoke();
     }
 }
 public override void Reset()
 {
     tweenID = null;
     //	target = new FsmOwnerDefault();
     //	target.OwnerOption = OwnerDefaultOption.SpecifyGameObject;
     completed   = null;
     failed      = null;
     playType    = PlayType.play;
     onExit      = OnExitAction.Nothing;
     startAction = OnStartAction.Default;
 }
Exemple #4
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);
        }
Exemple #5
0
 public virtual void Exit()
 {
     OnExitAction?.Invoke();
 }
Exemple #6
0
 public override void Reset()
 {
     tweenID  = null;
     playType = PlayType.play;
     onExit   = OnExitAction.Nothing;
 }