场景系统逻辑微调
This commit is contained in:
@@ -337,8 +337,6 @@ function SCN.swapUpdate()
|
|||||||
S.time=S.time-1
|
S.time=S.time-1
|
||||||
if S.time==S.mid then
|
if S.time==S.mid then
|
||||||
SCN.init(S.tar,SCN.cur)
|
SCN.init(S.tar,SCN.cur)
|
||||||
SCN.cur=S.tar
|
|
||||||
WIDGET.set(Widgets[S.tar])
|
|
||||||
collectgarbage()
|
collectgarbage()
|
||||||
--Scene swapped this moment
|
--Scene swapped this moment
|
||||||
end
|
end
|
||||||
@@ -348,6 +346,8 @@ function SCN.swapUpdate()
|
|||||||
end
|
end
|
||||||
function SCN.init(s,org)
|
function SCN.init(s,org)
|
||||||
if sceneInit[s]then sceneInit[s](org)end
|
if sceneInit[s]then sceneInit[s](org)end
|
||||||
|
SCN.cur=s
|
||||||
|
WIDGET.set(Widgets[s])
|
||||||
end
|
end
|
||||||
function SCN.push(tar,style)
|
function SCN.push(tar,style)
|
||||||
if not SCN.swapping then
|
if not SCN.swapping then
|
||||||
|
|||||||
Reference in New Issue
Block a user