微调切换场景初始化流程
This commit is contained in:
@@ -60,6 +60,7 @@ function SCN.init(s,org)
|
||||
local S=scenes[s]
|
||||
SCN.cur=s
|
||||
|
||||
WIDGET.set(S.widgetList)
|
||||
SCN.sceneInit=S.sceneInit
|
||||
SCN.sceneBack=S.sceneBack
|
||||
SCN.update=S.update
|
||||
@@ -79,7 +80,6 @@ function SCN.init(s,org)
|
||||
SCN.gamepadUp=S.gamepadUp
|
||||
SCN.socketRead=S.socketRead
|
||||
if S.sceneInit then S.sceneInit(org)end
|
||||
WIDGET.set(S.widgetList)
|
||||
end
|
||||
function SCN.push(tar,style)
|
||||
if not SCN.swapping then
|
||||
|
||||
@@ -7,7 +7,7 @@ local scene={}
|
||||
|
||||
local last--Last touch time
|
||||
local jump--Animation timer(10 to 0)
|
||||
local cv
|
||||
local cv=SETTING.cv
|
||||
|
||||
function scene.sceneInit()
|
||||
last=0
|
||||
|
||||
Reference in New Issue
Block a user