public void StopAllAnimations() { if (!string.IsNullOrEmpty(currentPlayingClipName)) { StopAnimation(currentPlayingClipName, true); } CachedLegacyAnimation.Stop(); currentPlayingClipName = null; lastAnimationUpdateTime = 0f; }
void StopLoadingAnimation(string anim_Loading) { if (CachedLegacyAnimation != null) { CachedLegacyAnimation.Stop(anim_Loading); } else { Debug.LogWarning("Loading button: " + name + " has no attached animation."); } }
public void StopAnimation(string animationName, bool sampleStop) { if (IsPlayingAnimation(animationName)) { if (sampleStop) { SampleAnimation(animationName, 0f); } CachedLegacyAnimation.Stop(animationName); currentPlayingClipName = null; lastAnimationUpdateTime = 0f; } }