public override void Draw(SpriteBatch spriteBatch) { map.Draw(spriteBatch); map.DrawBeforePlayer(player.getProperGridPosition(), spriteBatch); player.Draw(spriteBatch); map.DrawAfterPlayer(player.getProperGridPosition(), spriteBatch); base.Draw(spriteBatch); }
public override void Draw(ref SpriteBatch spriteBatch) { map.Draw(ref spriteBatch); map.DrawBeforePlayer(player.getProperGridPosition(), ref spriteBatch); player.Draw(ref spriteBatch); map.DrawAfterPlayer(player.getProperGridPosition(), ref spriteBatch); menu.Draw(spriteBatch); inventoryManger.Draw(ref spriteBatch); base.Draw(ref spriteBatch); interactor.Draw(ref spriteBatch); }