移除加载时可能的强制重启(防止ios出问题)
几处love退出改为去quit场景(防止ios出问题) 整理代码 框架跟进
This commit is contained in:
@@ -1,19 +1,19 @@
|
||||
local scene={}
|
||||
|
||||
function scene.sceneInit()
|
||||
if SYSTEM~="iOS" then
|
||||
function scene.enter()
|
||||
if SYSTEM=="iOS" then
|
||||
MES.update(1e99)
|
||||
Z.setPowerInfo(false)
|
||||
Z.setClickFX(false)
|
||||
VERSION.string=""
|
||||
MES.new('error',"Please swipe up or press Home button to quit Techmino on iOS",1e99)
|
||||
else
|
||||
if math.random()>.0000626 then
|
||||
love.timer.sleep(.26)
|
||||
love.event.quit()
|
||||
else
|
||||
error("So lucky! 0.00626% to get this!! You can quit the game now.")
|
||||
end
|
||||
else
|
||||
MES.update(1e99)
|
||||
Z.setPowerInfo(false)
|
||||
Z.setClickFX(false)
|
||||
VERSION.string=""
|
||||
MES.new('error',"Please swipe up or press Home button to quit Techmino on iOS",1e99)
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user