public void UPDATE() { Debug.Log("[Client][" + DateTime.Now + "] Send UPDATE"); StateMessage message = manager.Collect(); byte[] buffer = message.ToByteArray(); SEND(NetworkSettings.ServiceType.GAMEUPDATE, buffer); }
public void broadcastUPDATE() { StateMessage message = manager.Collect(); byte[] buffer = message.ToByteArray(); foreach (EndPoint endPoint in clients) { SENDTO(endPoint, NetworkSettings.ServiceType.GAMEUPDATE, buffer); } }