public override void OnUnDoExecute()
 {
     base.OnUnDoExecute();
     coroutineCtrl.Cansalce(DelyPlay);
     animPlayer.UnDoChanges(this);
     animPlayer.RemovePlayer(this);
     animPlayer = null;
 }
Example #2
0
        public override void OnUnDoExecute()
        {
            base.OnUnDoExecute();
            if (delyPlay != null)
            {
                StopCoroutine(delyPlay);
            }

            if (animPlayer != null)
            {
                animPlayer.StepUnDo();
                animPlayer.RemovePlayer(this);
                animPlayer = defaultAnimPlayer;
            }
        }