修复进入游戏场景时初始化代码顺序错误
This commit is contained in:
@@ -70,18 +70,18 @@ local function _step()floatRepRate=floatRepRate+1 end
|
|||||||
|
|
||||||
|
|
||||||
function scene.sceneInit(org)
|
function scene.sceneInit(org)
|
||||||
|
replaying=GAME.replaying
|
||||||
noKey=replaying
|
noKey=replaying
|
||||||
noTouch=not SETTING.VKSwitch or noKey
|
noTouch=not SETTING.VKSwitch or noKey
|
||||||
|
if org~='depause'and org~='pause'then
|
||||||
|
floatRepRate,replayRate=0,1
|
||||||
|
end
|
||||||
|
|
||||||
if GAME.init then
|
if GAME.init then
|
||||||
resetGameData()
|
resetGameData()
|
||||||
GAME.init=false
|
GAME.init=false
|
||||||
end
|
end
|
||||||
replaying=GAME.replaying
|
|
||||||
|
|
||||||
if org~='depause'and org~='pause'then
|
|
||||||
floatRepRate,replayRate=0,1
|
|
||||||
end
|
|
||||||
updateRepButtons()
|
updateRepButtons()
|
||||||
WIDGET.active.restart.hide=replaying
|
WIDGET.active.restart.hide=replaying
|
||||||
if SETTING.menuPos=='right'then
|
if SETTING.menuPos=='right'then
|
||||||
|
|||||||
Reference in New Issue
Block a user