三国卡牌客户端基础资源仓库
hch
2025-06-04 70909cbb5996d817fd417f634f47418188e46d0f
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using vnxbqy.UI;
using UnityEditor;
 
 
[CustomEditor(typeof(LongPressButton), true), CanEditMultipleObjects]
public class LongPressButtonEditor : ButtonExEditor
{
 
    public override void OnInspectorGUI()
    {
        base.OnInspectorGUI();
        LongPressButton button = target as LongPressButton;
        button.longPressCheckTime = EditorGUILayout.FloatField("长按延迟时间,否则单击", button.longPressCheckTime);
        button.longPressIntervalTime = EditorGUILayout.FloatField("长按间隔时间", button.longPressIntervalTime);
    }
}