You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

29 lines
586 B

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()
{
}
}
}