| | |
| | | return false; |
| | | }
|
| | |
|
| | | ActorShowConfig actorShowConfig = null;
|
| | | if (ActorShowConfig.GetActoreShowConfigByMapIdAndLineId(dataMapId, lineId, out actorShowConfig)) |
| | | { |
| | | var npcs = actorShowConfig.showNpcs;
|
| | | foreach (var item in npcs) |
| | | { |
| | | var npcConfig = Config.Instance.Get<NPCConfig>(item); |
| | | var assetbundleName = StringUtility.Contact("prefab_race_", npcConfig.MODE.ToLower());
|
| | | if (!IsAssetValid(assetbundleName)) |
| | | { |
| | | return false; |
| | | if (dataMapId != 10010) |
| | | {
|
| | | ActorShowConfig actorShowConfig = null;
|
| | | if (ActorShowConfig.GetActoreShowConfigByMapIdAndLineId(dataMapId, lineId, out actorShowConfig))
|
| | | {
|
| | | var npcs = actorShowConfig.showNpcs;
|
| | | foreach (var item in npcs)
|
| | | {
|
| | | var npcConfig = Config.Instance.Get<NPCConfig>(item);
|
| | | var assetbundleName = StringUtility.Contact("prefab_race_", npcConfig.MODE.ToLower());
|
| | | if (!IsAssetValid(assetbundleName))
|
| | | {
|
| | | return false;
|
| | | }
|
| | | }
|
| | | }
|
| | | } |
| | | }
|
| | |
|
| | | return true;
|