From 7d57decb93e2fb4d421f4780a5fce3a75215f384 Mon Sep 17 00:00:00 2001 From: 127-Z3R0 <81heti1bif@hft-stuttgart.de> Date: Mon, 20 Apr 2020 14:17:09 +0200 Subject: [PATCH] fix bound.size problem --- GoldWars/GoldWars/Menu/MenuScene.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/GoldWars/GoldWars/Menu/MenuScene.swift b/GoldWars/GoldWars/Menu/MenuScene.swift index 137a5d4..231da39 100644 --- a/GoldWars/GoldWars/Menu/MenuScene.swift +++ b/GoldWars/GoldWars/Menu/MenuScene.swift @@ -18,7 +18,7 @@ class MenuScene: SKScene { guard let touch = touches.first else { return } - let gameScene = GameScene(fileNamed: "GameScene")! + let gameScene = GameScene(size: self.size) let location = touch.location(in: self) let frontTouchedNode = atPoint(location).name