From f62f4dcfcbe5ea4ab5e98532fe8e6e0b39fd67e9 Mon Sep 17 00:00:00 2001 From: "PC-202302260912\\Administrator" <1545929779@qq.com> Date: Tue, 7 May 2024 11:46:02 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A4=87=E6=88=98=E7=95=8C=E9=9D=A2=E5=85=B3?= =?UTF-8?q?=E5=8D=A1=E6=98=BE=E7=A4=BA=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/Fight/FightPointPassMainPanel.lua | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassMainPanel.lua b/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassMainPanel.lua index 12fcd8bfaf..888a00a5d0 100644 --- a/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassMainPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Fight/FightPointPassMainPanel.lua @@ -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)