Change assertion of null-able values team and player
This commit is contained in:
parent
b2533d2a7d
commit
7e369cc7f5
@ -17,7 +17,7 @@ class Base: GKEntity {
|
||||
var changeOwnerShip: Bool
|
||||
var ownerShipPlayer: GKPlayer?
|
||||
|
||||
init(position: CGPoint, player: GKPlayer! = nil, 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