parent
37d36a511f
commit
20d50b84f2
|
@ -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()
|
||||||
|
|
Loading…
Reference in New Issue