using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; namespace MoleMole { [RequireComponent(typeof(Button))] public class PressWithIntervalClick : MonoBehaviour, IPointerDownHandler, IPointerUpHandler, IEventSystemHandler, IPointerExitHandler { public float intervalSeconds = 0.2f; private bool _isPointDown; private float _timer; private Button _btn; private void Awake() { _btn = GetComponent