using System.Collections; using System.Collections.Generic; using UnityEngine; using XWFramework.Tools; namespace XWFramework.Tools { public class AniEndCallBack : IEnumerator { Animator animator; public AniEndCallBack(Animator anima) { animator = anima; } public object Current { get { return null; } } public bool MoveNext() { return animator.GetCurrentAnimatorStateInfo(0).normalizedTime <= 0.99f; } public void Reset() { } } }