add player to init method
This commit is contained in:
parent
339be93865
commit
1f5a9f2365
@ -17,7 +17,7 @@ class Base: GKEntity {
|
||||
var changeOwnership: Bool
|
||||
var ownershipPlayer: GKPlayer?
|
||||
|
||||
init(position: CGPoint, team: Team! = nil) {
|
||||
init(position: CGPoint, player: GKPlayer! = nil, team: Team! = nil) {
|
||||
self.unitCount = 0
|
||||
self.adjacencyList = [Base]()
|
||||
self.changeOwnership = false
|
||||
|
Loading…
Reference in New Issue
Block a user