예제 #1
0
 private void Update()
 {
     if (telepathyServer != null)
     {
         while (telepathyServer.GetNextMessage(out Telepathy.Message message))
         {
             if (message.eventType == Telepathy.EventType.Data)
             {
                 telepathyServer.Send(message.connectionId, message.data);
             }
         }
     }
     else if (saeaServer != null)
     {
         while (saeaServer.GetNextMessage(out Mirror.Saea.Message message))
         {
             if (message.eventType == Mirror.Saea.EventType.Data)
             {
                 saeaServer.Send(message.connectionId, message.data);
             }
         }
     }
     else if (asyncServer != null)
     {
         asyncServer.Flush();
     }
 }
예제 #2
0
 public void LateUpdate()
 {
     server.Flush();
 }