unity-atoms/Source/MonoHooks/OnPointerDownHook.cs
2019-05-29 18:52:27 +02:00

15 lines
337 B
C#

using UnityEngine;
using UnityEngine.EventSystems;
namespace UnityAtoms
{
[AddComponentMenu("Unity Atoms/Hooks/On Pointer Down")]
public sealed class OnPointerDownHook : VoidHook, IPointerDownHandler
{
public void OnPointerDown(PointerEventData eventData)
{
OnHook(new Void());
}
}
}