void OnMouseUp() { isBeingDragged = false; BackpackController theBackpackController = backpackController; // @hack to robustify against DestroyImmediate destroying me in the middle of my OnMouseUp event if (!backpackController.ReceiveItemFromMouse(gameObject)) { if (this != null) // @hack to robustify against DestroyImmediate destroying me in the middle of my OnMouseUp event { transform.position = originalItemPosition; } } theBackpackController.ReleaseGridSlot(); }