diff --git a/GoldWars/GoldWars/Entities/Base.swift b/GoldWars/GoldWars/Entities/Base.swift index 1358b97..75415f5 100644 --- a/GoldWars/GoldWars/Entities/Base.swift +++ b/GoldWars/GoldWars/Entities/Base.swift @@ -14,13 +14,12 @@ class Base : GKEntity{ init(textureName:String, team: Team?,position: CGPoint ) { self.unitCount = 0 - super.init() + super.init() addComponent(DefaultBaseComponent(texture: SKTexture(imageNamed: textureName), position: position)) if(team != nil){ addComponent(TeamComponent(team: team!, position: position)) - - } - + self.unitCount = 100 + } } required init?(coder: NSCoder) {