Example #1
0
    public void UPDATE()
    {
        Debug.Log("[Client][" + DateTime.Now + "] Send UPDATE");
        StateMessage message = manager.Collect();

        byte[] buffer = message.ToByteArray();
        SEND(NetworkSettings.ServiceType.GAMEUPDATE, buffer);
    }
Example #2
0
    public void broadcastUPDATE()
    {
        StateMessage message = manager.Collect();

        byte[] buffer = message.ToByteArray();
        foreach (EndPoint endPoint in clients)
        {
            SENDTO(endPoint, NetworkSettings.ServiceType.GAMEUPDATE, buffer);
        }
    }