public Animator animator;
void Start()
{
animator = this.GetComponent<Animator>();
} void Update()
{
AnimatorStateInfo animatorStateInfo =animator.GetCurrentAnimatorStateInfo(); // 判断动画是否播放完成
if (animatorStateInfo.normalizedTime >= 1.0f)
{
       Debug.Log("动画播放完毕...");
}
}
05-11 22:37