public void EndCurrentGame(TeamHelpers.Team team_winnner) { Player winner = players.Find(player => player.team == team_winnner); players.Remove(winner); players.Add(winner); Pause(); if (winner.team == TeamHelpers.Team.HUMAN_TEAM) { menuController.OpenMenuByObjectCloseAll(victoryEndMenu); musicController.ChangeTo(victoryEndMenuMusicList); } else { menuController.OpenMenuByObjectCloseAll(defeatEndMenu); musicController.ChangeTo(defeatEndMenuMusicList); } endScore.DefineMapName(mapController.currentMap.name); endScore.DefineTime((int)timer); }