예제 #1
0
 public void Play(AnimName animName)
 {
     // if (!anim.GetCurrentAnimatorStateInfo(0).IsName(animName))
     // anim.CrossFade(animName,fadeTime);
     anim.Play(animName.ToString());
 }
예제 #2
0
 public void CrossFade(AnimName animName)
 {
     // if (!anim.GetCurrentAnimatorStateInfo(0).IsName(animName))
     anim.CrossFade(animName.ToString(), fadeTime);
 }
예제 #3
0
 public bool Is_Current_State(AnimName animName)
 {
     return(anim.GetCurrentAnimatorStateInfo(0).IsName(animName.ToString()));
 }