From 7a83198c6ff4fa699d04cda7af865abd66de58d1 Mon Sep 17 00:00:00 2001 From: wangzhenxing Date: Tue, 12 Oct 2021 16:39:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=92=AD=E6=94=BE=E6=88=98=E6=96=97=E5=AF=B9?= =?UTF-8?q?=E7=A2=B0=E6=97=B6=E6=B7=BB=E5=8A=A0=E6=8C=89=E9=92=AE=E5=B1=8F?= =?UTF-8?q?=E8=94=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../~Lua/Modules/WorldArena/WorldArenaBattleInfoPanel.lua | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Assets/ManagedResources/~Lua/Modules/WorldArena/WorldArenaBattleInfoPanel.lua b/Assets/ManagedResources/~Lua/Modules/WorldArena/WorldArenaBattleInfoPanel.lua index e52b399f3e..0007d33e25 100644 --- a/Assets/ManagedResources/~Lua/Modules/WorldArena/WorldArenaBattleInfoPanel.lua +++ b/Assets/ManagedResources/~Lua/Modules/WorldArena/WorldArenaBattleInfoPanel.lua @@ -274,6 +274,7 @@ function WorldArenaBattleInfoPanel:BindEvent() isAnim = true self:PlayFightAnim(this.leftTeam, this.rightTeam, 3, function(index) this.ShowBattleState(index,3) + state=2 this.playBacks[index]:SetActive(true) if index >= 3 then isAnim = false @@ -306,8 +307,11 @@ function WorldArenaBattleInfoPanel:BindEvent() --回放按钮点击事件 for i = 1, #this.playBacks do + Util.AddClick(this.playBacks[i],function() - + if state==2 then + return + end if not leftAllTeam[i] or not rightAllTeam[i] or #leftAllTeam[i]==0 or #rightAllTeam[i]==0 then PopupTipPanel.ShowTip("本场战斗无法回放!") return