using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; public class InventoryDropper : MonoBehaviour, IDropHandler { public void OnDrop(PointerEventData eventData) { ItemInventory inventoryItemm = eventData.pointerDrag.GetComponent(); inventoryItemm.Drop(); } }