播放战斗对碰时添加按钮屏蔽
parent
89216b64a5
commit
7a83198c6f
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue