public void OnEndDrag(PointerEventData eventData)
    {
        transform.localPosition = _startPosition;
        //looking to put code here to mess with the craftingSlots to enable easy Drag+Drop

        craftingSlotController slot = GetCraftingSlotUnderMouse();

        slot?.OnClick();
    }
    private craftingSlotController GetCraftingSlotUnderMouse()
    {
        GameObject clickedObject = GetObjectUnderMouse();

        //will store value of craftingSlotController if clickedObject is not null and has a component
        craftingSlotController slot = clickedObject?.GetComponent <craftingSlotController>();

        //will return null if slot is invalid
        return(slot);
    }