【战斗】=====如果之前是3倍速,就转成二倍速
parent
e337559c30
commit
09f2f05214
|
@ -435,6 +435,11 @@ end
|
|||
|
||||
function this.SwitchTimeScale()
|
||||
local _scale = math.floor(BattleManager.GetTimeScale())
|
||||
--如果之前是三倍速,强制转成二倍速
|
||||
if _scale==3 then
|
||||
BattleManager.SetTimeScale(BATTLE_TIME_SCALE_TWO)
|
||||
_scale=2
|
||||
end
|
||||
this.TimeScaleTxt.text = _scale
|
||||
|
||||
-- local child = this.BtnTimeScale.transform.childCount - 2 -- 3倍速时-2
|
||||
|
|
Loading…
Reference in New Issue