示例#1
0
 public override void ExitState()
 {
     Debug.Log("Exit State: RunState");
     if (_characterAnimator != null)
     {
         _characterAnimator.ChangeScale(false);
     }
 }
示例#2
0
 //Methods
 public override void InitState <T>(T param)
 {
     _characterAnimator = param as CharacterAnimator;
     if (_characterAnimator != null)
     {
         _characterAnimator.ChangeScale(true);
     }
     Debug.Log("Init State: RunState");
 }
 //Methods
 public override void InitState <T>(T param)
 {
     Debug.Log("Init State: IdleState");
     _characterAnimator = param as CharacterAnimator;
     if (_characterAnimator != null)
     {
         _characterAnimator.ChangeScale(false);
         _characterAnimator.ChangeColor(false);
     }
 }