Esempio n. 1
0
 private void RegisterEvent(OutgoingGameEvent gameEvent, int receiverPlayerID)
 {
     byte[] message = gameEvent.GetSerialized();
     UDPServer.GetInstance().SendMessageToPlayer(message, message.Length, receiverPlayerID);
 }
Esempio n. 2
0
 private void RegisterEvent(OutgoingGameEvent gameEvent)
 {
     byte[] message = gameEvent.GetSerialized();
     UDPServer.GetInstance().SendMessageToAll(message, message.Length);
 }