BS 0.2.0 Visual
This commit is contained in:
16
Convention/[Visual]/Operater/BaseDeselectBehaviour.cs
Normal file
16
Convention/[Visual]/Operater/BaseDeselectBehaviour.cs
Normal file
@@ -0,0 +1,16 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.Events;
|
||||
using UnityEngine.EventSystems;
|
||||
|
||||
namespace Convention.WindowsUI
|
||||
{
|
||||
public class BaseDeselectBehaviour : MonoBehaviour, IDeselectHandler, IBehaviourOperator
|
||||
{
|
||||
public UnityEvent<BaseEventData> OnDeselectEvent;
|
||||
|
||||
public void OnDeselect(BaseEventData eventData)
|
||||
{
|
||||
OnDeselectEvent?.Invoke(eventData);
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user