public override void OnInspectorGUI()
 {
     base.OnInspectorGUI();
     if (GUILayout.Button("编辑技能"))
     {
         SkillSelectionEditorWindows.OpenWindow(this);
     }
 }
Beispiel #2
0
        public override void OnInspectorGUI()
        {
            base.OnInspectorGUI();


            if (editorTarget.soliderDataArray.Length >= 1)
            {
                selectionIndex = UnityEditor.EditorGUILayout.IntSlider(selectionIndex, 0, editorTarget.soliderDataArray.Length - 1);

                if (GUILayout.Button("编辑技能"))
                {
                    SkillSelectionEditorWindows.OpenWindow(this, selectionIndex);
                }
            }
        }