private void OnGUI_EditorSaveButton() { if (GUILayout.Button("保存为json文件")) { if (!Editor_TableTool.CheckAllSkillExist(heroList, skillList)) { EditorUtility.DisplayDialog("失败", "有不存在的skillid", "ok"); return; } if (Editor_TableTool.isRepeatHeroIdOrNullAttributeName(heroList)) { EditorUtility.DisplayDialog("失败", "id重名或者属性名为空", "ok"); return; } Editor_TableTool.SaveHeroJsonFile(heroList); } }