private void MovementPanel() { if (PanelExt.PressedSprite(_itemui.ParantMenu.UICamera, TopRect) && _oldMousePoint != Vector2.Zero) { TopRect.Select = true; } if (TopRect.Select) { if (InputExt.Released(MouseButtons.Left)) { TopRect.Select = false; } AmoundPostion(_itemui.ParantMenu.UICamera.ScreenToWorldMouse() - _oldMousePoint); } _oldMousePoint = _itemui.ParantMenu.UICamera.ScreenToWorldMouse(); }