public override void Draw(GameTime gameTime) { GraphicsDevice.Clear(new Color(16, 17, 25)); if (SpriteManager != null) { _spriteBatch.Begin(SpriteSortMode.Deferred, BlendState.NonPremultiplied, SamplerState.PointClamp, null, RasterizerState.CullCounterClockwise, null, MainCamera.Transform); SpriteManager.Draw(GraphicsDevice, _spriteBatch); //SpriteRenderer.DrawRectangle(_spriteBatch, GraphicsDevice, new Rectangle((int)worldMousePosition.X, (int)worldMousePosition.Y, 20, 20), Color.White); _spriteBatch.End(); _guiBatch.Begin(); foreach (ResizeBox box in selectionBox.GetChildren()) { Vector2 transformed = Vector2.Transform(new Vector2(box.GetHoverPoint().X, box.GetHoverPoint().Y), MainCamera.Transform); if (selectionBox.GetBoundObject() != null) { SpriteRenderer.DrawRectangle(_guiBatch, GraphicsDevice, new Rectangle((int)transformed.X - 16, (int)transformed.Y - 16, 32, 32), Color.White, 3); } } _guiBatch.End(); } }