From cf1cf818e2503cc3925f708bc97a6bcb93819d2e Mon Sep 17 00:00:00 2001 From: ZhangBiao Date: Mon, 26 Apr 2021 20:45:42 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=88=98=E6=96=97=E7=95=8C=E9=9D=A2?= =?UTF-8?q?=E3=80=91=E4=B8=8A=E6=96=B9=E8=A1=80=E6=9D=A1=E7=A7=BB=E4=BB=93?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../ManagedResources/~Lua/Modules/Battle/View/BattlePanel.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Assets/ManagedResources/~Lua/Modules/Battle/View/BattlePanel.lua b/Assets/ManagedResources/~Lua/Modules/Battle/View/BattlePanel.lua index 17126c1c5a..214167754e 100644 --- a/Assets/ManagedResources/~Lua/Modules/Battle/View/BattlePanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/Battle/View/BattlePanel.lua @@ -286,6 +286,8 @@ end -- 初始化 function this.InitPanelData() + this.dmg2:SetActive(fightType == BATTLE_TYPE.XINJIANG) + this.dmg3:SetActive(fightType == BATTLE_TYPE.TASUILINGXIAO) if fightType == BATTLE_TYPE.GUILD_BOSS and fightType == BATTLE_TYPE.GUILD_CAR_DELAY then this.myDamage = 0 this.myDamageLevel = 0 @@ -299,7 +301,6 @@ function this.InitPanelData() end) end elseif fightType == BATTLE_TYPE.XINJIANG then - this.dmg2:SetActive(fightType == BATTLE_TYPE.XINJIANG) boxList[1]:SetActive(true) this.myDamage = 0 this.myDamageLevel = 0 @@ -319,7 +320,6 @@ function this.InitPanelData() local actData = CommonActPageManager.GetData(ActivityTypeDef.TaSuiLingXiao) local boxs = ConfigManager.GetConfigDataByKey(ConfigName.NewHeroConfig,"Id",actData.activityId).BoxList local maxDmg = actData.value - this.dmg3:SetActive(fightType == BATTLE_TYPE.TASUILINGXIAO) this.myDamage = 0 this.myDamageLevel = 0 this.dmg3Text.text = string.format("0/%s",boxs[1][1])