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