touching变量移入SCN模块
修复iOS上经常卡掉第一个触摸导致后续不能和控件交互
This commit is contained in:
@@ -4,6 +4,7 @@ local abs=math.abs
|
||||
local scenes={}
|
||||
|
||||
local SCN={
|
||||
mainTouchID=nil, --First touching ID(userdata)
|
||||
cur='NULL', --Current scene name
|
||||
swapping=false, --If Swapping
|
||||
stat={
|
||||
@@ -52,6 +53,7 @@ function SCN.swapUpdate(dt)
|
||||
if S.time<S.changeTime and S.time+dt>=S.changeTime then
|
||||
--Scene swapped this frame
|
||||
SCN.init(S.tar,SCN.cur)
|
||||
SCN.mainTouchID=nil
|
||||
end
|
||||
if S.time<0 then
|
||||
SCN.swapping=false
|
||||
|
||||
Reference in New Issue
Block a user