From 54813ab44da0ca003d5c5349a2d1a1e4c8eacc09 Mon Sep 17 00:00:00 2001 From: Marcel Schwarz Date: Sat, 2 May 2020 21:08:10 +0200 Subject: [PATCH] Fix indentation in Base entity --- GoldWars/GoldWars/Entities/Base.swift | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/GoldWars/GoldWars/Entities/Base.swift b/GoldWars/GoldWars/Entities/Base.swift index e7c62e1..f00dbb3 100644 --- a/GoldWars/GoldWars/Entities/Base.swift +++ b/GoldWars/GoldWars/Entities/Base.swift @@ -9,21 +9,21 @@ import SpriteKit import GameplayKit -class Base : GKEntity{ - var unitCount:Int - - init(position: CGPoint, team: Team! = nil) { - self.unitCount = 0 +class Base : GKEntity { + var unitCount:Int + + init(position: CGPoint, team: Team! = nil) { + self.unitCount = 0 super.init() - addComponent(DefaultBaseComponent(texture: SKTexture(imageNamed: "Base"), position: position)) - if(team != nil){ - addComponent(TeamComponent(team: team!, position: position)) + addComponent(DefaultBaseComponent(texture: SKTexture(imageNamed: "Base"), position: position)) + if(team != nil){ + addComponent(TeamComponent(team: team!, position: position)) self.unitCount = 100 } } - - required init?(coder: NSCoder) { - fatalError("init(coder:) has not been implemented") - } - + + required init?(coder: NSCoder) { + fatalError("init(coder:) has not been implemented") + } + }