public void Render(float xTopLeft, float yTopLeft, SpriteBatch batch) { if (tileSprite != null) { tileSprite.SetPosition(xTopLeft, yTopLeft); batch.Draw(tileSprite); } }
public void Render(float xTopLeft, float yTopLeft, SpriteBatch batch) { if (tileSprite == null) tileSprite = IoCManager.Resolve<IResourceManager>().GetSprite("space_texture"); tileSprite.SetPosition(xTopLeft, yTopLeft); batch.Draw(tileSprite); }