不从 GameViewController 菜单移动到 GameScene Swift

Not moving from GameViewController Menu to GameScene Swift

我在 GameViewController 中制作了我的游戏菜单。然后我尝试在按下 Go 按钮时移动到 GameScene。我使用默认代码来呈现 GameScene 文件。

 if let scene = GameScene(fileNamed:"GameScene") {

         // Configure the view.
         let skView = self.view as! SKView
         skView.showsFPS = false
         skView.showsNodeCount = false

         /* Sprite Kit applies additional optimizations to improve rendering performance */
         skView.ignoresSiblingOrder = true

         /* Set the scale mode to scale to fit the window */
         scene.scaleMode = .AspectFill

         skView.presentScene(scene)
}

我在情节提要中制作了菜单。我认为这就是它不起作用的原因。我应该如何解决这个问题?

尼尔

在SpriteKit中我们使用场景,GameScene在上面的GameViewController中。 GameViewController 向您展示了 GameScene。