PlayDead.Tile.DrawTile C# (CSharp) Method

DrawTile() public method

Draws this tile on the screen
public DrawTile ( SpriteBatch sb, Rectangle bounds ) : void
sb Microsoft.Xna.Framework.Graphics.SpriteBatch The SpriteBatch to use to render this tile
bounds Microsoft.Xna.Framework.Rectangle
return void
        public void DrawTile(SpriteBatch sb, Rectangle bounds)
        {
            if (!animated)
            {
                sb.Draw(tex, bounds, clip[0], tint);
            }
            else
            {
                int frame = (count / delay) % clip.Length;
                sb.Draw(tex, bounds, clip[frame], tint);
                count++;
            }
        }