public class animator : MonoBehaviour {Animator anim;AnimatorStateInfo animatorInfo;void Start () {a...
public class animator : MonoBehaviour { Animator anim;AnimatorStateInfo animatorInfo;void Start () { anim=GetComponent<Animator>();} void Update () { animatorInfo=anim.GetCurrentAnimatorStateInfo(0);if(animatorInfo.IsName("Take 001"))//注意这里指的不是动画的名字而是动画状态的名字 {...
void Update () { animatorInfo=anim.GetCurrentAnimatorStateInfo(0);if(animatorInfo.IsName("Take001...