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