From c7e2d8f773baa3955f17402b842eb43329c5f3a0 Mon Sep 17 00:00:00 2001 From: chai Date: Wed, 7 Apr 2021 21:06:10 +0800 Subject: +UI_Effect --- Assets/Test/00_EventSystem/PicoButton.cs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Assets/Test/00_EventSystem/PicoButton.cs (limited to 'Assets/Test/00_EventSystem/PicoButton.cs') diff --git a/Assets/Test/00_EventSystem/PicoButton.cs b/Assets/Test/00_EventSystem/PicoButton.cs new file mode 100644 index 0000000..385f90f --- /dev/null +++ b/Assets/Test/00_EventSystem/PicoButton.cs @@ -0,0 +1,24 @@ +using System.Collections; +using System.Collections.Generic; +using UnityEngine; +using UnityEngine.UI; +using UnityEngine.EventSystems; + +public class PicoButton : MonoBehaviour, IPointerDownHandler, IPointerUpHandler, IPointerClickHandler +{ + public virtual void OnPointerClick(PointerEventData eventData) + { + Debug.Log("PicoButton.OnPointerClick"); + } + + public virtual void OnPointerUp(PointerEventData eventData) + { + Debug.Log("PicoButton.OnPointerUp"); + } + + public virtual void OnPointerDown(PointerEventData eventData) + { + Debug.Log("PicoButton.OnPointerDown"); + } + +} -- cgit v1.1-26-g67d0