private void on(MatchOver message) { // if message.ForfeitingPlayer > 0, the match ended in a forfeit by that player string forfeitingPlayerId = message.ForfeitingPlayer > 0 ? message.ForfeitingPlayer.ToString() : "none"; // if message.AbortingPlayer > 0, the match ended in an abort by that player string abortingPlayerId = message.AbortingPlayer > 0 ? message.AbortingPlayer.ToString() : "none"; Debug.Log("SyncGameController: On MatchOver, forfeiting player: " + forfeitingPlayerId + ", aborting player: " + abortingPlayerId); UserData.Instance.InPause = true; UserData.Instance.IsGameOver = true; ChatManager.Instance.SetChatEnabled(false); matchInfoDisplay.PlayerScore = message.PlayerScore; string winner = matchInfoDisplay.PlayerScore > matchInfoDisplay.OpponentScore ? "You Won!" : "Opponent Won!"; matchInfoDisplay.GameState = "Game Over! " + winner; matchInfoDisplay.SetInputAllowed(false); client.Disconnect(true); }