少年修仙传客户端基础资源
client_Wu Xijin
2018-10-30 d0a0f4e224e138f84bc4373fe4e9cc2c96d6160c
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);
    }
}