Пример #1
0
 public static NetworkClient ConnectLocalServer()
 {
     LocalClient newClient = new LocalClient();
     NetworkServer.ActivateLocalClientScene();
     newClient.InternalConnectLocalServer(true);
     return newClient;
 }
Пример #2
0
 void ConnectLocalClient()
 {
     if (LogFilter.Debug) Debug.Log("NetworkManager StartHost");
     networkAddress = "localhost";
     NetworkServer.ActivateLocalClientScene();
     NetworkClient.ConnectLocalServer();
     RegisterClientMessages();
 }