diff --git a/GoldWars/GoldWars/Scenes/MenuScene.swift b/GoldWars/GoldWars/Scenes/MenuScene.swift index 943c568..cd5f9a8 100644 --- a/GoldWars/GoldWars/Scenes/MenuScene.swift +++ b/GoldWars/GoldWars/Scenes/MenuScene.swift @@ -57,10 +57,13 @@ class MenuScene: SKScene { // TODO: Notfalllösung if(!GameCenterHelper.isAuthenticated) { - let label = SKLabelNode(text: "Authenticated") - label.zPosition = 2 - label.position = CGPoint(x: self.size.width / 2, y: self.size.height / 2) - self.addChild(label) + let authLabel = SKLabelNode(text: "Yout are not logged in to Gamecenter. Please login via GameCenterApp") + authLabel.name = "authLabel" + authLabel.zPosition = 2 + authLabel.position = CGPoint(x: self.size.width / 2, y: self.size.height / 5) + self.addChild(authLabel) + } else { + self.childNode(withName: "authLabel")?.removeFromParent() } } }