Stop() публичный Метод

Stops the animation playing.
public Stop ( ) : void
Результат void
Пример #1
0
    /// <summary>
    /// Stops the current animation from playing
    /// and resets it to the beginning for playing
    /// again.
    /// </summary>
    public void StopAnim()
    {
        if (curAnim != null)
        {
            curAnim.Stop();
        }

        animating = false;
    }
Пример #2
0
    /// <summary>
    /// Plays the specified SuperSprite animation.
    /// </summary>
    /// <param name="anim">The SuperSprite animation to be played.</param>
    public void PlayAnim(SuperSpriteAnim anim)
    {
        if (!m_started)
        {
            Start();
        }

        if (curAnim != null)
        {
            curAnim.Stop();
            curAnim.Hide(true);
        }

        curAnim = anim;
        curAnim.Reset();

        animating = true;
        anim.Play();
    }