public override void Draw(GameTime gameTime) { // Only draw if we're doing a BasicEffectPass pass if (GearsetResources.CurrentRenderPass != RenderPass.BasicEffectPass) { return; } if (_hoveringObject is IPickable <BoundingBox> ) { BoundingBoxHelper.DrawBoundingBox(((IPickable <BoundingBox>)_hoveringObject).PickableVolume, Color.Gray); } if (_selectedObject is IPickable <BoundingBox> ) { BoundingBoxHelper.DrawBoundingBox(((IPickable <BoundingBox>)_selectedObject).PickableVolume, Color.White); } }