public void ServerStart(string address, int port, int maxConnections)
 {
     // WebGL host mode should work without errors, even though we can't
     // start a server in WebGL
     // (can't use Telepathy threads in webgl anyway)
     if (Application.platform != RuntimePlatform.WebGLPlayer)
     {
         server = new TelepathyTransport();
         server.ServerStart(address, port, maxConnections);
     }
     else
     {
         Debug.LogWarning("ServerStart can't be called in WebGL.");
     }
 }
Exemplo n.º 2
0
 public void ServerStart(string address, int port, int maxConnections)
 {
     server = new TelepathyTransport();
     server.ServerStart(address, port, maxConnections);
 }