mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-24 17:17:47 -05:00
15 lines
337 B
C#
15 lines
337 B
C#
using UnityEngine;
|
|
using UnityEngine.EventSystems;
|
|
|
|
namespace UnityAtoms
|
|
{
|
|
[AddComponentMenu("Unity Atoms/Hooks/On Pointer Down")]
|
|
public sealed class OnPointerDownHook : VoidHook, IPointerDownHandler
|
|
{
|
|
public void OnPointerDown(PointerEventData eventData)
|
|
{
|
|
OnHook(new Void());
|
|
}
|
|
}
|
|
}
|