InternalConnectLocalServer() private méthode

private InternalConnectLocalServer ( bool generateConnectMsg ) : void
generateConnectMsg bool
Résultat void
        static internal NetworkClient ReconnectLocalServer()
        {
            LocalClient newClient = new LocalClient();

            NetworkServer.instance.ActivateLocalClientScene();
            newClient.InternalConnectLocalServer(false);
            return(newClient);
        }
        static public NetworkClient ConnectLocalServer()
        {
            var newClient = new LocalClient();

            NetworkServer.instance.ActivateLocalClientScene();
            newClient.InternalConnectLocalServer(true);
            return(newClient);
        }
Exemple #3
0
        public static NetworkClient ConnectLocalServer()
        {
            LocalClient localClient = new LocalClient();

            NetworkServer.instance.ActivateLocalClientScene();
            localClient.InternalConnectLocalServer();
            return(localClient);
        }
Exemple #4
0
        internal static NetworkClient ReconnectLocalServer()
        {
            LocalClient localClient = new LocalClient();

            NetworkServer.instance.ActivateLocalClientScene();
            localClient.InternalConnectLocalServer(generateConnectMsg: false);
            return(localClient);
        }
 internal static NetworkClient ReconnectLocalServer()
 {
   LocalClient localClient = new LocalClient();
   NetworkServer.instance.ActivateLocalClientScene();
   localClient.InternalConnectLocalServer(false);
   return (NetworkClient) localClient;
 }
 /// <summary>
 /// <para>Create and connect a local client instance to the local server. This makes the client into a "host" - a client and server in the same process.</para>
 /// </summary>
 /// <returns>
 /// <para>A client object for communicating with the local server.</para>
 /// </returns>
 public static NetworkClient ConnectLocalServer()
 {
     LocalClient client = new LocalClient();
     NetworkServer.instance.ActivateLocalClientScene();
     client.InternalConnectLocalServer(true);
     return client;
 }