Swift, SpriteKit - Pause whole script

Viewed 1097

Is it possible to pause the whole script in GameScene using code from the GameViewController? I do not want to delay/pause the thread. There are multiple activities and functions going on at the same time and I would like to pause everything.

I would also like to be able to resume after having paused.

For example, in the GameViewController:

GameScene.pause()

and

GameScene.resume()

Thank you in advance.

1 Answers
Related