BS 0.2.0 Visual
This commit is contained in:
16
Convention/[Visual]/Operater/BaseDropBehaviour.cs
Normal file
16
Convention/[Visual]/Operater/BaseDropBehaviour.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user