add player to teamcomponent
This commit is contained in:
parent
f67c673ca7
commit
276d2cfa2e
@ -25,8 +25,8 @@ class Base: GKEntity {
|
||||
super.init()
|
||||
|
||||
addComponent(DefaultBaseComponent(texture: SKTexture(imageNamed: "Base"), position: position))
|
||||
if(team != nil){
|
||||
addComponent(TeamComponent(team: team!, position: position))
|
||||
if(team != nil && player != nil){
|
||||
addComponent(TeamComponent(team: team!, position: position, player: player!))
|
||||
self.unitCount = 500
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user