コード例 #1
0
    public void StopAllAnimations()
    {
        if (!string.IsNullOrEmpty(currentPlayingClipName))
        {
            StopAnimation(currentPlayingClipName, true);
        }

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

            CachedLegacyAnimation.Stop(animationName);

            currentPlayingClipName  = null;
            lastAnimationUpdateTime = 0f;
        }
    }