public void Draw(GameTime gameTime, SpriteBatch spriteBatch) { _unitPointerTile.Draw(gameTime, spriteBatch); _targetPointerTile.Draw(gameTime, spriteBatch); _unitPointer.Draw(gameTime, spriteBatch); foreach (var unit in _units) { unit.Draw(gameTime, spriteBatch); } }
// Spriting protected void DrawSprite(Sprite sprite, Vector2f position) { sprite.Position = position; sprite.Draw(window, new RenderStates(sprite.Texture)); }