public void UpdatePlayerTeamRequest(C2S.UpdatePlayerTeam pck) { if (!isServer) return; S2C.BroadcastPlayerTeam broadcastTeam = new S2C.BroadcastPlayerTeam(pck.playerID, pck.team); NetworkServer.SendToAll((short)PacketType.BroadcastPlayerTeam, broadcastTeam); }
public void UpdatePlayerNameRequest(C2S.UpdatePlayerName pck) { if (!isServer) return; S2C.BroadcastPlayerName broadcastPck = new S2C.BroadcastPlayerName(pck.playerID, pck.name); NetworkServer.SendToAll((short)PacketType.BroadcastPlayerName, broadcastPck); }