minor refactoring
This commit is contained in:
parent
09062d5f5d
commit
cbf288e86d
@ -158,6 +158,7 @@ class RoundCalculatorService {
|
|||||||
winner = determineWinner(by: "capture")
|
winner = determineWinner(by: "capture")
|
||||||
}
|
}
|
||||||
winner == GameCenterManager.sharedInstance.hostingPlayer?.displayName ? GameCenterManager.sharedInstance.sendStateToPeers(state: State(state: 4)) : GameCenterManager.sharedInstance.sendStateToPeers(state: State(state: 5))
|
winner == GameCenterManager.sharedInstance.hostingPlayer?.displayName ? GameCenterManager.sharedInstance.sendStateToPeers(state: State(state: 4)) : GameCenterManager.sharedInstance.sendStateToPeers(state: State(state: 5))
|
||||||
|
//TODO: Trigger Winner/Loser-Scene for Server
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
currentRound += 1
|
currentRound += 1
|
||||||
|
Loading…
Reference in New Issue
Block a user