From e9bd05c852707d2f87920b99bfaeb98e070c377a Mon Sep 17 00:00:00 2001 From: Jakob Haag Date: Sat, 2 May 2020 14:02:24 +0200 Subject: [PATCH] add GameCenterLogin-window to the GameViewController and fix size of the MenueScene --- GoldWars/GoldWars/GameViewController.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/GoldWars/GoldWars/GameViewController.swift b/GoldWars/GoldWars/GameViewController.swift index 29f521d..158c6de 100644 --- a/GoldWars/GoldWars/GameViewController.swift +++ b/GoldWars/GoldWars/GameViewController.swift @@ -17,7 +17,6 @@ class GameViewController: UIViewController { if let view = self.view as! SKView? { if let scene = SKScene(fileNamed: "MenuScene") { - scene.size = self.view.bounds.size scene.scaleMode = .aspectFill view.presentScene(scene) //TODO: create dev profile or remove on delivery @@ -25,6 +24,8 @@ class GameViewController: UIViewController { view.showsNodeCount = true } } + + GameCenterHelper.helper.viewController = self } override var shouldAutorotate: Bool {