12345678910111213 |
- 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<ItemInventory>();
- inventoryItemm.Drop();
- }
- }
|