How to prevent run SKAction on paused scene (after unpaused), texture of node not change after pause/unpause scene
问题 I have two problems with pausing and unpausing scene. I have button: playPause = SKSpriteNode(imageNamed: "buttPause.png") playPause.name = "pause" playPause.setScale (0.65) playPause.position = CGPoint(x: -self.frame.width / 2.55 , y: self.frame.height / 2.27) playPause.zPosition = 10 self.addChild(playPause) I have set function to pause and unpause scene + change texture of button: func buttonpauseplayTouched() { if isPlaying { playPause.texture = SKTexture(imageNamed: "buttPlay") isPlaying