From f3036a5b33d518412b2869c7972bde02b7336aa5 Mon Sep 17 00:00:00 2001 From: 127-Z3R0 <81heti1bif@hft-stuttgart.de> Date: Mon, 20 Apr 2020 14:32:34 +0200 Subject: [PATCH] fix interaction-menu with base - zPosition --- GoldWars/GoldWars/Game/GameScene.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/GoldWars/GoldWars/Game/GameScene.swift b/GoldWars/GoldWars/Game/GameScene.swift index 4e508d0..29f5012 100644 --- a/GoldWars/GoldWars/Game/GameScene.swift +++ b/GoldWars/GoldWars/Game/GameScene.swift @@ -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)