Resize Button, adjust position and change text

This commit is contained in:
Jakob Haag 2020-06-02 11:06:49 +02:00
parent 42f4537dc6
commit 2ba541e369
2 changed files with 5 additions and 4 deletions

View File

@ -69,12 +69,14 @@ class HUD: GKEntity {
finishButton = SingeClickButtonNode(
textureName: "yellow_button04",
text: "Finish Round",
text: "Done",
isEnabled: true,
position: CGPoint(x: EntityManager.gameEMInstance.scene.size.width * 0.15, y: EntityManager.gameEMInstance.scene.size.height * 0.1),
position: CGPoint(
x: EntityManager.gameEMInstance.scene.size.width * 0.1,
y: EntityManager.gameEMInstance.scene.size.height * 0.1),
onButtonPress: { }
)
finishButton.size = CGSize(width: 250, height: 40)
finishButton.size = CGSize(width: 80, height: 40)
finishButton.zPosition = 4
super.init()

View File

@ -41,7 +41,6 @@ class RoundTimer: Timer {
MultiplayerNetwork.sharedInstance.sendPlayerMoves(localRoundData: DataService.sharedInstance.localRoundData)
}
calculate = true
print("send Player Moves")
}
if timeLeft <= 0 {
if calculate