Unable to pause SKEmitterNode in iOS9

前端 未结 1 1794
一个人的身影
一个人的身影 2020-12-28 18:24

I\'ve tried few workarounds, but still I can\'t pause existing particles on iOS9. I am using following technique to pause the scene:

  • pause the sce
相关标签:
1条回答
  • 2020-12-28 19:13

    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.

    0 讨论(0)
提交回复
热议问题