In Swift on “game over” move from scene to another UIView and dispose the scene?
问题 I have a "life counter" in my game and when it hits 0 = dead - i want to move away from the scene to another UIView - which is game over view - with stats and a button to go back to the home screen (first UIViewController with buttons to start the game and so on. Here is the code of how i move to the Game Over view class GameScene: SKScene,SKPhysicsContactDelegate { var viewController: UIViewController? // more code and functions // ...... func trackLife (lifeCHange: Int){ life = life +