Resizing Button Abbrechen in ModalAttack

This commit is contained in:
Chauntalle Schüle 2020-05-15 13:30:56 +02:00
parent 8b840b5089
commit 938c35196b

View File

@ -29,6 +29,7 @@ class CancelBtnNode: SKSpriteNode {
self.isEnabled = isEnabled
let texture = SKTexture(imageNamed: "yellow_cross")
super.init(texture: texture, color: SKColor.white, size: texture.size())
self.size = CGSize(width: 30, height: 30)
self.position = position
let label = SKLabelNode(fontNamed: "Courier-Bold")