unity-atoms/Packages/MonoHooks/Runtime/Hooks/OnPointerDownHook.cs

19 lines
456 B
C#
Raw Normal View History

2020-03-01 20:26:06 -05:00
using UnityEngine;
using UnityEngine.EventSystems;
2019-10-15 19:43:51 -04:00
2020-03-01 20:26:06 -05:00
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();
}
}
}