整理代码,返回需要二次确认的小程序统一用一个函数
This commit is contained in:
@@ -45,7 +45,9 @@ end
|
||||
function scene.keyDown(key,isRep)
|
||||
if isRep then return end
|
||||
if key=='escape'then
|
||||
SCN.back()
|
||||
if tryBack()then
|
||||
SCN.back()
|
||||
end
|
||||
elseif key=='space'then
|
||||
if state==0 then--main
|
||||
if timer==0 then
|
||||
|
||||
Reference in New Issue
Block a user