“Tap To Resume” Pause text SpriteKit

后端 未结 3 1386
梦谈多话
梦谈多话 2021-01-05 11:22

I know SpriteKit already handles pausing the game when the app enters the inactive state but what I\'m trying to do is add a SKLabelNode \"tap to resume\" when the app re-en

3条回答
  •  迷失自我
    2021-01-05 11:54

    I think I got the problem. You should call pauseGameScene() first. Then view?.paused is true. Then you can call showPauseText().

    Hope that helps :)

提交回复
热议问题