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"); } }