ID1009443】

【无尽副本】地图描述同时根据地图ID和当前玩家所在等级段来读取
dev_chengFeng
jiaoyangna 2021-06-09 17:51:54 +08:00
parent 37d36a511f
commit 20d50b84f2
1 changed files with 9 additions and 1 deletions

View File

@ -174,7 +174,15 @@ function this.InitCompShow()
this.rewardList[j].gameObject:SetActive(false) this.rewardList[j].gameObject:SetActive(false)
end end
end end
this.bossGridText.text = ConfigManager.GetConfigDataByKey(ConfigName.endlessDifficulty,"MapPool",EndLessMapManager.openMapId).Desc local configs = ConfigManager.GetAllConfigsDataByKey(ConfigName.endlessDifficulty,"MapPool",EndLessMapManager.openMapId)
local lv = PlayerManager.level
local config = nil
for i = 1,#configs do
if lv >= configs[i].WorldLevel[1] and lv <= configs[i].WorldLevel[2] then
config = configs[i]
end
end
this.bossGridText.text = config.Desc
end end
function this.SetStaticData() function this.SetStaticData()