备战界面关卡显示修改
parent
255f3e8f25
commit
f62f4dcfcb
|
@ -495,9 +495,9 @@ function this.RefreshBossInfo()
|
|||
--LogError("k==================================="..k)
|
||||
if name=="" then
|
||||
name=aa.Name
|
||||
nextLv=v.NextLevel
|
||||
end
|
||||
table.insert(levelList,k)
|
||||
nextLv=v.NextLevel
|
||||
table.insert(levelList,k)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -507,7 +507,9 @@ function this.RefreshBossInfo()
|
|||
local nextConfig=ConfigManager.GetConfigData(ConfigName.MainLevelConfig,nextLv)
|
||||
if nextConfig then
|
||||
nextBossLv=nextConfig.OpenRule[1][2]
|
||||
name=nextConfig.Name
|
||||
if name=="" then
|
||||
name=nextConfig.Name
|
||||
end
|
||||
end
|
||||
LogError("nextBossLv====================="..nextBossLv)
|
||||
if #levelList>0 then
|
||||
|
@ -523,7 +525,7 @@ function this.RefreshBossInfo()
|
|||
this.fightRP:SetActive(false)
|
||||
this.fightSaoGuang: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
|
||||
this.openFun:SetActive(true)
|
||||
this.openFunNeedInfo.text=name
|
||||
|
@ -615,7 +617,7 @@ function this.ShowBattleInfo()
|
|||
local bossName=GetResourcePath(heroData.Live)
|
||||
|
||||
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.bossLiveGO= poolManager:LoadLive(this.bossLiveName,this.enemyPos.transform, Vector3.one, Vector3.zero)
|
||||
this.bossLiveGO.transform:SetParent(this.enemyPos.transform)
|
||||
|
|
Loading…
Reference in New Issue