protected override void OnMouseDrag() { if (disabled) { return; } transform.position = cursorOnTransform + dragRelative; DropBox nextBox = RaycastMaster.ComponentUnderCursor <DropBox>(collidr); if (nextBox) { dropBox = nextBox; dropBox.canAccept(transform); } else { if (dropBox) { dropBox.cancel(); dropBox = null; } } }