备战界面关卡显示修改

tcx_xiyou_dev
PC-202302260912\Administrator 2024-05-07 11:46:02 +08:00
parent 255f3e8f25
commit f62f4dcfcb
1 changed files with 7 additions and 5 deletions

View File

@ -495,9 +495,9 @@ function this.RefreshBossInfo()
--LogError("k==================================="..k) --LogError("k==================================="..k)
if name=="" then if name=="" then
name=aa.Name name=aa.Name
nextLv=v.NextLevel
end end
table.insert(levelList,k) table.insert(levelList,k)
nextLv=v.NextLevel
end end
end end
end end
@ -507,7 +507,9 @@ function this.RefreshBossInfo()
local nextConfig=ConfigManager.GetConfigData(ConfigName.MainLevelConfig,nextLv) local nextConfig=ConfigManager.GetConfigData(ConfigName.MainLevelConfig,nextLv)
if nextConfig then if nextConfig then
nextBossLv=nextConfig.OpenRule[1][2] nextBossLv=nextConfig.OpenRule[1][2]
name=nextConfig.Name if name=="" then
name=nextConfig.Name
end
end end
LogError("nextBossLv====================="..nextBossLv) LogError("nextBossLv====================="..nextBossLv)
if #levelList>0 then if #levelList>0 then
@ -523,7 +525,7 @@ function this.RefreshBossInfo()
this.fightRP:SetActive(false) this.fightRP:SetActive(false)
this.fightSaoGuang:SetActive(false) this.fightSaoGuang:SetActive(false)
--this.fightGuideEffect:SetActive(false) --this.fightGuideEffect:SetActive(false)
this.lockText.text=string.format("%s层后开启",nextBossLv- FightPointPassManager.soldierLayerId) this.lockText.text=string.format("%s层后开启",nextBossLv-FightPointPassManager.soldierLayerId)
end end
this.openFun:SetActive(true) this.openFun:SetActive(true)
this.openFunNeedInfo.text=name this.openFunNeedInfo.text=name
@ -615,7 +617,7 @@ function this.ShowBattleInfo()
local bossName=GetResourcePath(heroData.Live) local bossName=GetResourcePath(heroData.Live)
if bossName~=this.bossLiveName then if bossName~=this.bossLiveName then
--poolManager:UnLoadLive(this.bossLiveName, this.bossLiveGO, PoolManager.AssetType.GameObject) poolManager:UnLoadLive(this.bossLiveName, this.bossLiveGO, PoolManager.AssetType.GameObject)
this.bossLiveName=bossName this.bossLiveName=bossName
this.bossLiveGO= poolManager:LoadLive(this.bossLiveName,this.enemyPos.transform, Vector3.one, Vector3.zero) this.bossLiveGO= poolManager:LoadLive(this.bossLiveName,this.enemyPos.transform, Vector3.one, Vector3.zero)
this.bossLiveGO.transform:SetParent(this.enemyPos.transform) this.bossLiveGO.transform:SetParent(this.enemyPos.transform)