fix bound.size problem

This commit is contained in:
127-Z3R0 2020-04-20 14:17:09 +02:00
parent dace2364da
commit 7d57decb93

View File

@ -18,7 +18,7 @@ class MenuScene: SKScene {
guard let touch = touches.first else { guard let touch = touches.first else {
return return
} }
let gameScene = GameScene(fileNamed: "GameScene")! let gameScene = GameScene(size: self.size)
let location = touch.location(in: self) let location = touch.location(in: self)
let frontTouchedNode = atPoint(location).name let frontTouchedNode = atPoint(location).name