using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; namespace Monpl.UI { [DisallowMultipleComponent] [RequireComponent(typeof(Button))] [RequireComponent(typeof(RectTransform))] public class ButtonAniBase : Graphic, IPointerDownHandler, IPointerEnterHandler, IPointerUpHandler, IPointerExitHandler { protected bool isPressed; // Invisible Graphic protected override void OnPopulateMesh(VertexHelper vh) { vh.Clear(); } public void OnPointerDown(PointerEventData eventData) { if (GetComponent