修改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

@@ -57,7 +57,7 @@ end
local scene={}
function scene.sceneInit(org)
function scene.sceneInit()
textBox.hide=true
textBox:clear()
inputBox.hide=true
@@ -68,7 +68,7 @@ function scene.sceneInit(org)
upstreamProgress=1
newMessageTimer=0
if org=='setting_game'then
if SCN.prev=='setting_game'then
NET.changeConfig()
end
if GAME.prevBG then