public void SetState_WinLoss(Message_Update_MatchFinished data)
    {
        CloseAllWindows();
        ResultsPanel.SetActive(true);
        ResultsHeaderText.text = data.won ? "You won" : "You lost";
        var    scores      = InGameWrapper.instance.playersWrapper.GetOnlyLocalPlayer().playerScoreController;
        string contentText = String.Concat("Rounds won ", data.playerScore.roundsWon, newLine, "Kills ", scores.GetKills(), newLine, "Deaths ", scores.GetDeaths());

        ResultsContentText.text = contentText;
    }
Exemple #2
0
 public void MatchFinished(Message_Update_MatchFinished data)
 {
     guiHandler.SetState_WinLoss(data);
 }
Exemple #3
0
        private void SendResultMessage(Server_ServerClient client, PlayerScore playerScore, bool won)
        {
            Message_Update_MatchFinished msg = new Message_Update_MatchFinished(won, playerScore);

            server.messageSender.Send(msg, client);
        }