Merge branch '31-debug-flag-fur-matchmaking' into 'development'

Resolve "Debug Flag für Matchmaking"

Closes #31

See merge request marcel.schwarz/software-projekt-2!43
This commit is contained in:
Marcel Schwarz 2020-05-05 16:19:35 +00:00
commit 0b4e9ad48e

View File

@ -21,7 +21,11 @@ class MenuScene: SKScene {
text: "Start Game",
position: CGPoint(x: midX, y: midY),
onButtonPress: {
if CommandLine.arguments.contains("--no-matchmaking") {
self.loadScene(scene: GameScene(size: self.size))
} else {
MatchmakingHelper.sharedInstance.presentMatchmaker(scene: self)
}
}))
entityManager.add(Button(name: "settingsButton",
iconName: "",