Zeplin.Actor.Draw C# (CSharp) Method

Draw() public method

This is called for you once per map draw by Zeplin.
public Draw ( GameTime gameTime ) : void
gameTime Microsoft.Xna.Framework.GameTime
return void
        public new void Draw(GameTime gameTime)
        {
            //If there is no animation script defined on the Sprite, just draw the Sprite.
            Rectangle sourceRect;
            if (AnimationScript != null)
            {
                sourceRect = AnimationScript.ProcessAnimation(gameTime, FrameSize);
                Image.Draw(Transformation, sourceRect);
            }
            else
            {
                Image.Draw(Transformation, null);
            }
            ((SATCollisionVolume)CollisionVolume).Draw();
        }