Files
Convention-Unity/Convention/[Visual]/Operater/BaseDropBehaviour.cs

17 lines
390 B
C#
Raw Normal View History

2025-07-21 15:58:52 +08:00
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.EventSystems;
namespace Convention.WindowsUI
{
public class BaseDropBehaviour : MonoBehaviour, IDropHandler, IBehaviourOperator
{
public UnityEvent<PointerEventData> OnDropEvent;
public void OnDrop(PointerEventData eventData)
{
OnDropEvent?.Invoke(eventData);
}
}
}