我正在使用Swift和SpriteKit制作一些游戏。当我的应用程序进入后台时,它会调用暂停功能,但会在游戏恢复时自动取消暂停。funcpauseTheGame(){self.scene?.isPaused=true}应用委托(delegate)funcapplicationWillResignActive(_application:UIApplication){NotificationCenter.default.post(name:NSNotification.Name(rawValue:"goToBackground"),object:self)游戏场景NotificationC