Пример #1
0
 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);
 }
Пример #2
0
 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);
 }