public static bool HasAnimationReachedLabel([NotNull] Animator2D animator2D, CharacterAnimationInfo animationInfo, [NotNull] string label) { if (!animator2D.get_reachedEndOfAnimation() && !label.Equals(animator2D.get_currentLabel(), StringComparison.OrdinalIgnoreCase)) { return(!animationInfo.animationName.Equals(animator2D.get_animationName())); } return(true); }
public static bool HasAnimationEnded([NotNull] Animator2D animator2D, CharacterAnimationInfo animationInfo) { if (!animator2D.get_reachedEndOfAnimation()) { return(!animationInfo.animationName.Equals(animator2D.get_animationName())); } return(true); }
public override IEnumerator DestroyWhenFinished(Component instance) { Animator2D animator2D = instance; do { yield return(null); if (null == animator2D) { yield break; } }while (!animator2D.get_reachedEndOfAnimation()); FightObjectFactory.DestroyAnimatedObjectEffectInstance(animator2D); }