| | |
| | |
|
| | | // 加载配置文件
|
| | | HashSet<Type> configTypes = new HashSet<Type>() {
|
| | | typeof(ActBillboardAwardConfig),
|
| | | typeof(ActHeroAppearArtConfig),
|
| | | typeof(ActHeroAppearConfig),
|
| | | typeof(ActHeroAppearSkinArtConfig),
|
| | | typeof(ActHeroAppearStarConfig),
|
| | | typeof(ActLunhuidianTypeConfig),
|
| | | typeof(ActSignAwardConfig),
|
| | | typeof(ADAwardConfig),
|
| | | typeof(BattleMapConfig),
|
| | | typeof(BeautyConfig),
|
| | |
| | | LoadConfigByType(configType);
|
| | | sw.Stop();
|
| | | #if UNITY_EDITOR
|
| | | if (sw.ElapsedMilliseconds >= 100)
|
| | | if (sw.ElapsedMilliseconds >= 500)
|
| | | {
|
| | | Debug.LogError($"加载配置 {configType.Name} 耗时较长: {sw.ElapsedMilliseconds} ms");
|
| | | }
|
| | |
| | |
|
| | | public override void Release()
|
| | | {
|
| | | // 清空 ActBillboardAwardConfig 字典
|
| | | ClearConfigDictionary<ActBillboardAwardConfig>();
|
| | | // 清空 ActHeroAppearArtConfig 字典
|
| | | ClearConfigDictionary<ActHeroAppearArtConfig>();
|
| | | // 清空 ActHeroAppearConfig 字典
|
| | | ClearConfigDictionary<ActHeroAppearConfig>();
|
| | | // 清空 ActHeroAppearSkinArtConfig 字典
|
| | | ClearConfigDictionary<ActHeroAppearSkinArtConfig>();
|
| | | // 清空 ActHeroAppearStarConfig 字典
|
| | | ClearConfigDictionary<ActHeroAppearStarConfig>();
|
| | | // 清空 ActLunhuidianTypeConfig 字典
|
| | | ClearConfigDictionary<ActLunhuidianTypeConfig>();
|
| | | // 清空 ActSignAwardConfig 字典
|
| | | ClearConfigDictionary<ActSignAwardConfig>();
|
| | | // 清空 ADAwardConfig 字典
|
| | | ClearConfigDictionary<ADAwardConfig>();
|
| | | // 清空 BattleMapConfig 字典
|
| | |
| | |
|
| | | sw.Stop();
|
| | |
|
| | | if (sw.ElapsedMilliseconds >= 100)
|
| | | if (sw.ElapsedMilliseconds >= 500)
|
| | | {
|
| | | Debug.LogError($"[自检] 加载配置 {configType.Name} 耗时较长: {sw.ElapsedMilliseconds} ms");
|
| | | }
|