public static bool HasAnimationEnded([NotNull] IAnimator2D animator2D, string animationName) { if (!animator2D.get_reachedEndOfAnimation()) { return(!animationName.Equals(animator2D.get_animationName())); } return(true); }
public static bool HasAnimationReachedLabel([NotNull] IAnimator2D animator2D, string animationName, [NotNull] string label) { if (!animator2D.get_reachedEndOfAnimation() && !label.Equals(animator2D.get_currentLabel(), StringComparison.OrdinalIgnoreCase)) { return(!animationName.Equals(animator2D.get_animationName())); } return(true); }