mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-24 00:58:59 -05:00
19 lines
461 B
C#
19 lines
461 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")]
|
||
|
public sealed class OnPointerDownHook : VoidHook, IPointerDownHandler
|
||
|
{
|
||
|
public void OnPointerDown(PointerEventData eventData)
|
||
|
{
|
||
|
OnHook(new Void());
|
||
|
}
|
||
|
}
|
||
|
}
|