public static void ReloadSettingData() { LoadPref(); LoadConfig(); if (null == mProtoSetting) { mProtoSetting = (ProtoSetting)EditorWindow.GetWindow <ProtoSetting>(); } mProtoSetting.settingData = mSettingData; mProtoSetting.Repaint(); }
static void OpenConfigWindow() { if (null == mProtoSetting) { mProtoSetting = (ProtoSetting)EditorWindow.GetWindow <ProtoSetting>(); } mProtoSetting.settingData = mSettingData; mProtoSetting.useDefaultConfig = (1 == configLevel); mProtoSetting.titleContent.text = "游戏数据生成"; mProtoSetting.Show(); }