상속: NetworkClient
        static public NetworkClient ConnectLocalServer()
        {
            var newClient = new LocalClient();

            NetworkServer.instance.ActivateLocalClientScene();
            newClient.InternalConnectLocalServer(true);
            return(newClient);
        }
        static internal NetworkClient ReconnectLocalServer()
        {
            LocalClient newClient = new LocalClient();

            NetworkServer.instance.ActivateLocalClientScene();
            newClient.InternalConnectLocalServer(false);
            return(newClient);
        }
예제 #3
0
        internal static NetworkClient ReconnectLocalServer()
        {
            LocalClient localClient = new LocalClient();

            NetworkServer.instance.ActivateLocalClientScene();
            localClient.InternalConnectLocalServer(generateConnectMsg: false);
            return(localClient);
        }
예제 #4
0
        public static NetworkClient ConnectLocalServer()
        {
            LocalClient localClient = new LocalClient();

            NetworkServer.instance.ActivateLocalClientScene();
            localClient.InternalConnectLocalServer();
            return(localClient);
        }
예제 #5
0
 public ULocalConnectionToClient(LocalClient localClient)
 {
     address       = "localClient";
     m_LocalClient = localClient;
 }
예제 #6
0
 public ULocalConnectionToClient(LocalClient localClient)
 {
     base.address       = "localClient";
     this.m_LocalClient = localClient;
 }
예제 #7
0
 internal static NetworkClient ReconnectLocalServer()
 {
   LocalClient localClient = new LocalClient();
   NetworkServer.instance.ActivateLocalClientScene();
   localClient.InternalConnectLocalServer(false);
   return (NetworkClient) localClient;
 }
 public ULocalConnectionToClient(LocalClient localClient)
 {
     base.address = "localClient";
     this.m_LocalClient = localClient;
 }
예제 #9
0
 internal int AddLocalClient(LocalClient localClient)
 {
     this.m_LocalClients.Add(localClient);
       return this.m_Connections.AddLocal((NetworkConnection) new ULocalConnectionToClient(localClient));
 }
예제 #10
0
 /// <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;
 }
예제 #11
0
 internal int AddLocalClient(LocalClient localClient)
 {
     if (this.m_LocalConnectionsFakeList.Count != 0)
     {
         Debug.LogError("Local Connection already exists");
         return -1;
     }
     this.m_LocalConnection = new ULocalConnectionToClient(localClient);
     this.m_LocalConnection.connectionId = 0;
     this.m_SimpleServerSimple.SetConnectionAtIndex(this.m_LocalConnection);
     this.m_LocalConnectionsFakeList.Add(this.m_LocalConnection);
     this.m_LocalConnection.InvokeHandlerNoData(0x20);
     return 0;
 }