【战斗】=====如果之前是3倍速,就转成二倍速

wangzhenxing 2022-05-16 13:40:53 +08:00
parent e337559c30
commit 09f2f05214
1 changed files with 5 additions and 0 deletions

View File

@ -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