Fix indentation in Base entity

This commit is contained in:
Marcel Schwarz 2020-05-02 21:08:10 +02:00
parent 67a345e9bf
commit 54813ab44d

View File

@ -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")
}
}