连击
This commit is contained in:
parent
e2b12a917d
commit
6f7fd539eb
@ -949,9 +949,9 @@ function BattleBaseUI:showCombo(count, side)
|
|||||||
self.comboNodeVisible = true
|
self.comboNodeVisible = true
|
||||||
self.comboNode:setVisible(true)
|
self.comboNode:setVisible(true)
|
||||||
if count <= 5 then
|
if count <= 5 then
|
||||||
if self.comboFxVisible1 then
|
if not self.comboFxVisible1 then
|
||||||
self.comboFxVisible1 = false
|
self.comboFxVisible1 = true
|
||||||
self.comboFx1:setActive(false)
|
self.comboFx1:setActive(true)
|
||||||
end
|
end
|
||||||
if self.comboFxVisible2 then
|
if self.comboFxVisible2 then
|
||||||
self.comboFxVisible2 = false
|
self.comboFxVisible2 = false
|
||||||
@ -975,13 +975,13 @@ function BattleBaseUI:showCombo(count, side)
|
|||||||
self.comboFxVisible1 = false
|
self.comboFxVisible1 = false
|
||||||
self.comboFx1:setActive(false)
|
self.comboFx1:setActive(false)
|
||||||
end
|
end
|
||||||
if self.comboFxVisible2 then
|
if not self.comboFxVisible2 then
|
||||||
self.comboFxVisible2 = false
|
self.comboFxVisible2 = true
|
||||||
self.comboFx2:setActive(false)
|
self.comboFx2:setActive(true)
|
||||||
end
|
end
|
||||||
if not self.comboFxVisible3 then
|
if self.comboFxVisible3 then
|
||||||
self.comboFxVisible3 = true
|
self.comboFxVisible3 = false
|
||||||
self.comboFx3:setActive(true)
|
self.comboFx3:setActive(false)
|
||||||
end
|
end
|
||||||
self.comboBg1:setVisible(true)
|
self.comboBg1:setVisible(true)
|
||||||
self.comboTx1:setText(GConst.INT_TO_STRING[count], self.comboTxComp1)
|
self.comboTx1:setText(GConst.INT_TO_STRING[count], self.comboTxComp1)
|
||||||
@ -997,17 +997,17 @@ function BattleBaseUI:showCombo(count, side)
|
|||||||
self.comboAnimator:Play(GConst.BattleConst.ANIMATOR_HASH_NAME_BATTLE_COMBO_2_l, -1, 0)
|
self.comboAnimator:Play(GConst.BattleConst.ANIMATOR_HASH_NAME_BATTLE_COMBO_2_l, -1, 0)
|
||||||
end
|
end
|
||||||
else
|
else
|
||||||
if not self.comboFxVisible1 then
|
if self.comboFxVisible1 then
|
||||||
self.comboFxVisible1 = true
|
self.comboFxVisible1 = false
|
||||||
self.comboFx1:setActive(true)
|
self.comboFx1:setActive(false)
|
||||||
end
|
end
|
||||||
if not self.comboFxVisible2 then
|
if self.comboFxVisible2 then
|
||||||
self.comboFxVisible2 = true
|
self.comboFxVisible2 = false
|
||||||
self.comboFx2:setActive(true)
|
self.comboFx2:setActive(false)
|
||||||
end
|
end
|
||||||
if self.comboFxVisible3 then
|
if not self.comboFxVisible3 then
|
||||||
self.comboFxVisible3 = false
|
self.comboFxVisible3 = true
|
||||||
self.comboFx3:setActive(false)
|
self.comboFx3:setActive(true)
|
||||||
end
|
end
|
||||||
self.comboBg1:setVisible(true)
|
self.comboBg1:setVisible(true)
|
||||||
self.comboTx1:setText(GConst.EMPTY_STRING, self.comboTxComp1)
|
self.comboTx1:setText(GConst.EMPTY_STRING, self.comboTxComp1)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user