21 if (currentItem ==
null)
23 Debug.LogError(
"Tried to initialize the slot with an null item!");
27 OnItemDropped(currentItem);
32 draggable.transform.position = transform.position;
39 private void CurrentItemOnBeginDrag(PointerEventData eventData)
44 private void CurrentItemEndDragHandler(PointerEventData eventData,
bool dropped)
Action< MouseDragBehaviour > OnDropHandler
MouseDragBehaviour CurrentItem
void Initialize(MouseDragBehaviour currentItem)
Action< PointerEventData > OnBeginDragHandler
Action< PointerEventData, bool > OnEndDragHandler