init player1 to playerOneBase and player2 to playerTwoBase on init
This commit is contained in:
parent
5b11dacbaa
commit
0c9abe0d08
@ -25,8 +25,7 @@ class TwoPlayerDefaultTestMap: MapProtocol {
|
||||
// Create Bases
|
||||
let basePlayerOne = Base(
|
||||
position: CGPoint(x: self.size.width * 0.1, y: self.size.height / 2),
|
||||
// ToDo: not final version. Better would be something like MatchmakingHelper.spieler1 but does not work yet
|
||||
player: GKLocalPlayer.local,
|
||||
player: MatchmakingHelper.sharedInstance.mpMatch?.players[0],
|
||||
team: .team1
|
||||
)
|
||||
|
||||
@ -49,6 +48,7 @@ class TwoPlayerDefaultTestMap: MapProtocol {
|
||||
|
||||
let basePlayerTwo = Base(
|
||||
position: CGPoint(x: self.size.width * 0.9, y: self.size.height / 2),
|
||||
player: MatchmakingHelper.sharedInstance.mpMatch?.players[1],
|
||||
team: .team2
|
||||
)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user