mirror of
https://github.com/unity-atoms/unity-atoms.git
synced 2025-01-25 17:38:24 -05:00
23a8873462
* changed AddComponentMenu names for Listeners * renamed AddComponentMenu Listeners names in other packages * renamed AddComponentMenu for hooks * renamed double Listeners to "x 2" convention
19 lines
466 B
C#
19 lines
466 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 Hook")]
|
|
public sealed class OnPointerDownHook : VoidHook, IPointerDownHandler
|
|
{
|
|
public void OnPointerDown(PointerEventData eventData)
|
|
{
|
|
OnHook(new Void());
|
|
}
|
|
}
|
|
}
|