Unable to pause SKEmitterNode in iOS9

坚强是说给别人听的谎言 提交于 2019-11-30 03:30:59

To pause the scene:

currentScene.speed = 0
currentScene.paused = true

To unpause the scene

currentScene.speed = Variables.gameSpeed
currentScene.paused = false

Does that work for you?

PS: What iOS version are you working on? I've read about problems with iOS9.1, which seems to be corrected in 9.3, about those emitters.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!