private void OnGUI_EditorSaveButton() { if (GUILayout.Button("保存为json文件")) { if (!Editor_TableTool.CheckAllBuffExist(skillList, buffList)) { EditorUtility.DisplayDialog("失败", "有不存在的buffid", "ok"); return; } if (Editor_TableTool.IsRepeatSkillId(skillList)) { EditorUtility.DisplayDialog("失败", "skillid重名", "ok"); return; } Editor_TableTool.SaveSkillJsonFile(skillList); EditorWindows_CreateHero.RefreshSkillData(); } }