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

19 lines
461 B
C#
Raw Normal View History

2019-10-15 19:43:51 -04:00
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());
}
}
}