少年修仙传客户端基础资源
client_Wu Xijin
2019-02-14 54fad068f41ba7b0d2f16699a3f774be2a0d84e9
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
using Snxxz.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);
    }
}