fix interaction-menu with base - zPosition

This commit is contained in:
127-Z3R0 2020-04-20 14:32:34 +02:00
parent 4acd12ddc5
commit f3036a5b33

View File

@ -43,6 +43,7 @@ class GameScene: SKScene, SKPhysicsContactDelegate {
menu = SKSpriteNode(color: SKColor.blue , size: CGSize(width: self.size.width * 0.4, height: self.size.height * 0.4))
menu.position = CGPoint(x: self.size.width * 0.5, y: self.size.height * 0.5)
menu.zPosition = 2
self.addChild(basePlayer1)
self.addChild(basePlayer2)