using UnityEngine; using UnityEngine.EventSystems; namespace UnityAtoms.MonoHooks { /// /// Mono Hook for `OnPointerDown` /// [EditorIcon("atom-icon-delicate")] [AddComponentMenu("Unity Atoms/Hooks/On Pointer Down Hook")] public sealed class OnPointerDownHook : VoidHook, IPointerDownHandler { public void OnPointerDown(PointerEventData eventData) { OnHook(); } } }