private void ReleaseDraggingItem() { isMouseDragging = false; draggingObject?.SetOriginalPosition(originalPosition); if (isOverBag) { if (draggingTransform != null) { var bagThrowable = draggingTransform.GetComponent <IBagThrowable>(); bagThrowable?.PutInBag(); } } else { draggingObject?.OnDragEvent(isMouseDragging); } draggingTransform = null; }