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

@@ -28,9 +28,9 @@ local touchDist
local scene={}
function scene.sceneInit(org)
function scene.sceneInit()
BG.set()
mapCam.zoomK=org=='main'and 5 or 1
mapCam.zoomK=SCN.prev=='main'and 5 or 1
visibleModes={}--1=unlocked, 2=locked but visible
for name,M in next,MODES do
if RANKS[name]and M.x then