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