コード例 #1
0
ファイル: ServerGame.cs プロジェクト: rkdrnf/fortresswar
    public void AddPlayerToTeam(ServerPlayer player, Team team)
    {
        if (player.GetTeam() != Team.NONE)
                GetTeam(player.GetTeam()).RemovePlayer(player);

            GetTeam(team).AddPlayer(player);
    }