SuperSpriteAnim.Hide C# (CSharp) Метод

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

Hides the sprite of the current animation.
public Hide ( bool tf ) : void
tf bool Whether to hide the animation.
Результат void
	public void Hide(bool tf)
	{
		if (curAnim < 0 || curAnim >= spriteAnims.Length)
			return;

		HideSprite(spriteAnims[curAnim].sprite, tf);
	}

Usage Example

Пример #1
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.Hide(true);
        }

        curAnim = anim;
        curAnim.Reset();

        animating = true;
        anim.Play();
    }