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

Starts the animation to playing.
public Play ( ) : void
Результат void
Пример #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();
    }
Пример #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.Hide(true);

		curAnim = anim;
		curAnim.Reset();

		animating = true;
		anim.Play();
	}