修改scene模块,支持在切换场景的时候传参了

This commit is contained in:
MrZ626
2021-12-07 15:04:27 +08:00
parent 7d230cc3b0
commit 27a9697e47
5 changed files with 21 additions and 17 deletions

View File

@@ -135,7 +135,7 @@ local function _checkGameKeyDown(key)
return true--No key pressed
end
function scene.sceneInit(org)
function scene.sceneInit()
if GAME.init then
resetGameData()
GAME.init=false
@@ -145,7 +145,7 @@ function scene.sceneInit(org)
noKey=replaying
noTouch=not SETTING.VKSwitch or replaying
if org~='depause'and org~='pause'then
if SCN.prev~='depause'and SCN.prev~='pause'then
trigGameRate,gameRate=0,1
elseif not replaying then
if GAME.tasUsed then