using LuaInterface; using UnityEngine; using UnityEngine.EventSystems; using UnityEngine.UI; namespace UnityEngine.UI { [RequireComponent(typeof(Button))] public class RepeatButton : MonoBehaviour, IPointerDownHandler, IPointerUpHandler, IPointerExitHandler { public int[] stage; public float[] delay; public int[] effTimes; [HideInInspector] public Button button; private float curEffTime; private bool isDown = false; private float startTime; private float lastIsDownTime; LuaTable table; LuaFunction effFunc; [NoToLua] void Start() { button = GetComponent