InventoryDropper.cs 362 B

12345678910111213
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.EventSystems;
  5. public class InventoryDropper : MonoBehaviour, IDropHandler
  6. {
  7. public void OnDrop(PointerEventData eventData)
  8. {
  9. ItemInventory inventoryItemm = eventData.pointerDrag.GetComponent<ItemInventory>();
  10. inventoryItemm.Drop();
  11. }
  12. }