16 lines
450 B
C#
16 lines
450 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
using UnityEngine.EventSystems;
|
|
|
|
public class ItemSlot : MonoBehaviour, IDropHandler
|
|
{
|
|
[SerializeField] private RectTransform _transform;
|
|
public void OnDrop(PointerEventData eventData)
|
|
{
|
|
eventData.pointerDrag.GetComponent<RectTransform>().anchoredPosition = _transform.anchoredPosition;
|
|
Debug.Log("Conected");
|
|
}
|
|
}
|