再次修复进入游戏场景时初始化代码顺序错误

This commit is contained in:
MrZ626
2021-08-10 16:13:36 +08:00
parent 702d427183
commit 1ae26d39c2

View File

@@ -70,18 +70,18 @@ local function _step()floatRepRate=floatRepRate+1 end
function scene.sceneInit(org)
replaying=GAME.replaying
noKey=replaying
noTouch=not SETTING.VKSwitch or noKey
if org~='depause'and org~='pause'then
floatRepRate,replayRate=0,1
end
if GAME.init then
resetGameData()
GAME.init=false
end
replaying=GAME.replaying
noKey=replaying
noTouch=not SETTING.VKSwitch or replaying
if org~='depause'and org~='pause'then
floatRepRate,replayRate=0,1
end
updateRepButtons()
WIDGET.active.restart.hide=replaying
if SETTING.menuPos=='right'then