add GameCenterLogin-window to the GameViewController and fix size of the MenueScene
This commit is contained in:
parent
cdb4d69621
commit
e9bd05c852
@ -17,7 +17,6 @@ class GameViewController: UIViewController {
|
|||||||
|
|
||||||
if let view = self.view as! SKView? {
|
if let view = self.view as! SKView? {
|
||||||
if let scene = SKScene(fileNamed: "MenuScene") {
|
if let scene = SKScene(fileNamed: "MenuScene") {
|
||||||
scene.size = self.view.bounds.size
|
|
||||||
scene.scaleMode = .aspectFill
|
scene.scaleMode = .aspectFill
|
||||||
view.presentScene(scene)
|
view.presentScene(scene)
|
||||||
//TODO: create dev profile or remove on delivery
|
//TODO: create dev profile or remove on delivery
|
||||||
@ -25,6 +24,8 @@ class GameViewController: UIViewController {
|
|||||||
view.showsNodeCount = true
|
view.showsNodeCount = true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
GameCenterHelper.helper.viewController = self
|
||||||
}
|
}
|
||||||
|
|
||||||
override var shouldAutorotate: Bool {
|
override var shouldAutorotate: Bool {
|
||||||
|
Loading…
Reference in New Issue
Block a user