17 lines
430 B
C#
17 lines
430 B
C#
|
using UnityEngine;
|
|||
|
using UnityEngine.Events;
|
|||
|
using UnityEngine.EventSystems;
|
|||
|
|
|||
|
namespace Convention.WindowsUI
|
|||
|
{
|
|||
|
public class BasePointerEnterBehaviour : MonoBehaviour, IPointerEnterHandler, IBehaviourOperator
|
|||
|
{
|
|||
|
public UnityEvent<PointerEventData> OnPointerEnterEvent;
|
|||
|
|
|||
|
public void OnPointerEnter(PointerEventData eventData)
|
|||
|
{
|
|||
|
OnPointerEnterEvent?.Invoke(eventData);
|
|||
|
}
|
|||
|
}
|
|||
|
}
|