少年修仙传客户端基础资源
dabaoji
2025-06-09 8ee0256378cbf5dbc9d76ed10b60b65a844ef4dd
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);
    }
}