unity-atoms/Packages/MonoHooks/Runtime/Hooks/OnPointerDownHook.cs
Adam Ramberg c3bc59259f More WIP
2020-03-02 02:26:06 +01:00

19 lines
456 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();
}
}
}