Exemple #1
0
 public void PlayAnimation(string animName)
 {
     AnimationLog.Log("*****************播放动画:" + animName);
     _currAnimName = animName;
     if (_animator == null)
     {
         return;
     }
     //animator.CrossFade(anim_name, 0.2f);
     _animator.Play(animName);
     //animator.Play(anim_name, 0, 0);
 }
Exemple #2
0
 public void ChangeAnimationSpeed(float speed)
 {
     AnimationLog.Log("*****************[{0}]更改动画速度:[{1}]", _currAnimName, speed);
 }