public override void OnInspectorGUI()
        {
            EditorGUI.BeginDisabledGroup(true);
            base.OnInspectorGUI();
            EditorGUI.EndDisabledGroup();

            if (GUILayout.Button("Edit Datas"))
            {
                EditorSrpgDataEditorWindow window = EditorSrpgDataEditorWindow.OpenEditorSrpgDataEditorWindow();
                window.srpgData = srpgData;
            }
        }
Пример #2
0
 public static EditorSrpgDataEditorWindow OpenEditorSrpgDataEditorWindow()
 {
     if (s_Window != null)
     {
         s_Window.Focus();
         return(s_Window);
     }
     s_Window         = EditorWindow.GetWindow <EditorSrpgDataEditorWindow>(false, "SRPG Data");
     s_Window.minSize = new Vector2(480, 480);
     s_Window.Show();
     return(s_Window);
 }
Пример #3
0
 private void OnDestroy()
 {
     this.srpgData = null;
     s_Window      = null;
 }