备战界面关卡显示修改
parent
255f3e8f25
commit
f62f4dcfcb
|
@ -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,8 +507,10 @@ 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]
|
||||||
|
if name=="" then
|
||||||
name=nextConfig.Name
|
name=nextConfig.Name
|
||||||
end
|
end
|
||||||
|
end
|
||||||
LogError("nextBossLv====================="..nextBossLv)
|
LogError("nextBossLv====================="..nextBossLv)
|
||||||
if #levelList>0 then
|
if #levelList>0 then
|
||||||
this.bossObj:SetActive(true)
|
this.bossObj:SetActive(true)
|
||||||
|
@ -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)
|
||||||
|
|
Loading…
Reference in New Issue