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