Пример #1
0
    public void AddPlayerToTeam(ServerPlayer player, Team team)
    {
        if (player.GetTeam() != Team.NONE)
                GetTeam(player.GetTeam()).RemovePlayer(player);

            GetTeam(team).AddPlayer(player);
    }