summaryrefslogtreecommitdiff
path: root/Assets/Scripts/CapsuleButton.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Assets/Scripts/CapsuleButton.cs')
-rw-r--r--Assets/Scripts/CapsuleButton.cs24
1 files changed, 24 insertions, 0 deletions
diff --git a/Assets/Scripts/CapsuleButton.cs b/Assets/Scripts/CapsuleButton.cs
new file mode 100644
index 0000000..9adee0f
--- /dev/null
+++ b/Assets/Scripts/CapsuleButton.cs
@@ -0,0 +1,24 @@
+using System.Collections;
+using System.Collections.Generic;
+using UnityEngine;
+using UnityEngine.UI;
+using UnityEngine.EventSystems;
+
+public class CapsuleButton : MonoBehaviour, IPointerDownHandler, IPointerUpHandler, IPointerClickHandler
+{
+ public virtual void OnPointerClick(PointerEventData eventData)
+ {
+ Debug.Log("CapsuleButton.OnPointerClick");
+ }
+
+ public virtual void OnPointerUp(PointerEventData eventData)
+ {
+ Debug.Log("CapsuleButton.OnPointerUp");
+ }
+
+ public virtual void OnPointerDown(PointerEventData eventData)
+ {
+ Debug.Log("CapsuleButton.OnPointerDown");
+ }
+
+}