14 lines
362 B
C#
14 lines
362 B
C#
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();
|
|
}
|
|
}
|