AnimatedSprite.PlayerWithWeapon.Draw C# (CSharp) Method

Draw() public method

public Draw ( SpriteBatch spriteBatch, Microsoft.Xna.Framework.Graphics.Texture2D tx ) : void
spriteBatch Microsoft.Xna.Framework.Graphics.SpriteBatch
tx Microsoft.Xna.Framework.Graphics.Texture2D
return void
        public override void Draw(SpriteBatch spriteBatch,Texture2D tx)
        {
            base.Draw(spriteBatch,tx);
            Site.Draw(spriteBatch,tx);
            if (MyProjectile != null && MyProjectile.ProjectileState != Projectile.PROJECTILE_STATE.STILL)
                    MyProjectile.Draw(spriteBatch,tx);
            if (_playerHealthBar != null)
                _playerHealthBar.draw(spriteBatch);
        }