Esempio n. 1
0
    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);
    }
Esempio n. 2
0
    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);
    }