From 60e9ac888e256e569c0626db1f3f06a7b855d5b2 Mon Sep 17 00:00:00 2001 From: 127-Z3R0 <81heti1bif@hft-stuttgart.de> Date: Thu, 2 Jul 2020 09:46:04 +0200 Subject: [PATCH] disable GameCenterButton if User is not authenticated --- GoldWars/GoldWars/Scenes/MenuScene.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/GoldWars/GoldWars/Scenes/MenuScene.swift b/GoldWars/GoldWars/Scenes/MenuScene.swift index 8c72c82..6d6378f 100644 --- a/GoldWars/GoldWars/Scenes/MenuScene.swift +++ b/GoldWars/GoldWars/Scenes/MenuScene.swift @@ -84,6 +84,7 @@ class MenuScene: SKScene { if entityManager.entities.count != 0 { entityManager.getBackground()!.update(deltaTime: currentTime) entityManager.getButtonByName(buttonName: "startGameButton").component(ofType: ButtonComponent.self)?.buttonNode.isEnabled = GameCenterManager.isAuthenticated + entityManager.getButtonByName(buttonName: "gameCenterButton").component(ofType: ButtonComponent.self)?.buttonNode.isEnabled = GameCenterManager.isAuthenticated } if GameCenterManager.sharedInstance.initIsFinish {