Skip to content

Instantly share code, notes, and snippets.

View Shiheuan's full-sized avatar
🗓️

Shiheuan Shiheuan

🗓️
View GitHub Profile
@Shiheuan
Shiheuan / UIEventListener.cs
Last active July 17, 2019 12:38
Unity UI EventTrigger instance
using UnityEngine;
using UnityEngine.EventSystems;
public class UIEventListener : EventTrigger
{
public delegate void UIDelegate(GameObject go);
public delegate void UIDragDelegate(Vector2 pressionPosition);
public event UIDelegate onPointerEnter;
public event UIDelegate onPointerExit;