/// <summary>
        /// Turn dragging on
        /// </summary>
        void enableDrag()
        {
            // record original values
            originalParent             = transform.parent;
            originalLocation           = transform.position;
            originalScale              = parentController.currentSize;
            originalContainerInventory = containingInventory;
            ItemBeingDragged           = this;
            isBeingDragged             = true;
            originalOpacity            = parentController.currentOpacity;
            wasShapedOriginally        = containingInventory == Player.InventoryTypes.GridPack
        ? true
        : false;

            /// update for dragging
            parentController.setOpacity(1);
            // if the pack menu is open it can manage all of the dragging
            if (Universe.LocalPlayerManager.PackGridController.packMenuIsOpen && containingInventory != Player.InventoryTypes.GridPack)
            {
                parentController.resize();
                // save and replace the anchor values
                originalMaxAnchor = parentController.rectTransform.anchorMax;
                originalMinAnchor = parentController.rectTransform.anchorMin;
                Vector2 gridSize = Universe.LocalPlayerManager.PackGridController.getGridSquareSize();
                parentController.rectTransform.anchorMin = Vector2.zero;
                parentController.rectTransform.anchorMax = gridSize + gridSize;

                // re-parent to the open grid
                containingInventory = Player.InventoryTypes.GridPack;
                parentController.rectTransform.SetParent(Universe.LocalPlayerManager.PackGridController.gridTransform);
            }
        }
 /// <summary>
 /// disable the dragging
 /// </summary>
 void disableDrag()
 {
     ItemBeingDragged = null;
     isBeingDragged   = false;
 }