Esempio n. 1
0
    public void ShowGameEndScreen()
    {
        gameEndPanel.gameObject.SetActive(true);
        var teamWithMorePoints = GameSettings.gameMode.TeamScores.OrderByDescending(t => t.score).First();

        teamWithMorePoints.wonRounds++;
        gameEndPanel.SetTitle(teamWithMorePoints.Name + " hat das Spiel gewonnen.");
    }
    public void ShowGameEndScreen()
    {
        gameEndPanel.gameObject.SetActive(true);
        GameSettings.gameHasStarted = false;
        foreach (var player in PlayerConfigurationManager.Instance.Players)
        {
            player.gameObject.SetActive(false);
        }
        var teamWithMorePoints = GameSettings.gameMode.TeamScores.OrderByDescending(t => t.score).First();

        teamWithMorePoints.wonRounds++;
        gameEndPanel.SetTitle(teamWithMorePoints.Players.First().name + " hat das Spiel gewonnen.");
    }