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