using UnityEditor; using UnityEngine; using UnityEngine.EventSystems; public interface DraggablePanelInterface { /// /// Function to associate defined Drag&Drop behaviour to passed slot /// /// public ISlot SetupDragAndDropToSlot(ISlot slot); public void BeginDrag(ItemSlot itemSlot); public void EndDrag(ItemSlot itemSlot); public void Drag(ItemSlot itemSlot); public void Drop(ItemSlot dropItemSlot); public void MouseClick(ItemSlot itemSlot, PointerEventData eventData); // supports function to use in Drop public ISlot GetDraggedSlot(); }