mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-23 16:48:23 -05:00
19 lines
456 B
C#
19 lines
456 B
C#
using UnityEngine;
|
|
using UnityEngine.EventSystems;
|
|
|
|
namespace UnityAtoms.MonoHooks
|
|
{
|
|
/// <summary>
|
|
/// Mono Hook for `OnPointerDown`
|
|
/// </summary>
|
|
[EditorIcon("atom-icon-delicate")]
|
|
[AddComponentMenu("Unity Atoms/Hooks/On Pointer Down Hook")]
|
|
public sealed class OnPointerDownHook : VoidHook, IPointerDownHandler
|
|
{
|
|
public void OnPointerDown(PointerEventData eventData)
|
|
{
|
|
OnHook();
|
|
}
|
|
}
|
|
}
|