Exemple #1
0
    // Animation

    public void SetAnimation(EntityAnimation newAnim)
    {
        if (anim != null)
        {
            anim.Finish();
        }

        anim = newAnim;

        if (anim != null)
        {
            anim.Begin(this);
        }
    }