public void LoadConfigs() { string[] guids = AssetDatabase.FindAssets(configSearchText); if (guids.Length == 0) { throw new EBPException("未能找到配置文件! 搜索文本:" + configSearchText); } string moduleConfigPath = AssetDatabase.GUIDToAssetPath(guids[0]); string configsFolderPath = Path.GetDirectoryName(moduleConfigPath); ModuleConfig.Load(moduleConfigPath); StateConfig.Load(Path.Combine(configsFolderPath, ModuleConfig.Json.StateConfigName)); }