From b1276a1b76ac3b87add90e0c6b887d5afea1cfea Mon Sep 17 00:00:00 2001 From: chai Date: Sun, 11 Oct 2020 09:12:08 +0800 Subject: =?UTF-8?q?*event=20system=E5=88=9D=E6=8E=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Assets/Scripts/PicoButton.cs | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 Assets/Scripts/PicoButton.cs (limited to 'Assets/Scripts/PicoButton.cs') diff --git a/Assets/Scripts/PicoButton.cs b/Assets/Scripts/PicoButton.cs new file mode 100644 index 0000000..385f90f --- /dev/null +++ b/Assets/Scripts/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