using UnityEngine; using UnityEngine.EventSystems; namespace UnityAtoms.MonoHooks { /// /// Mono Hook for `OnPointerDown` /// [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()); } } }