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); }
internal static NetworkClient ReconnectLocalServer() { LocalClient localClient = new LocalClient(); NetworkServer.instance.ActivateLocalClientScene(); localClient.InternalConnectLocalServer(generateConnectMsg: false); return(localClient); }
public static NetworkClient ConnectLocalServer() { LocalClient localClient = new LocalClient(); NetworkServer.instance.ActivateLocalClientScene(); localClient.InternalConnectLocalServer(); return(localClient); }
public ULocalConnectionToClient(LocalClient localClient) { address = "localClient"; m_LocalClient = localClient; }
public ULocalConnectionToClient(LocalClient localClient) { base.address = "localClient"; this.m_LocalClient = localClient; }
internal static NetworkClient ReconnectLocalServer() { LocalClient localClient = new LocalClient(); NetworkServer.instance.ActivateLocalClientScene(); localClient.InternalConnectLocalServer(false); return (NetworkClient) localClient; }
internal int AddLocalClient(LocalClient localClient) { this.m_LocalClients.Add(localClient); return this.m_Connections.AddLocal((NetworkConnection) new ULocalConnectionToClient(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; }
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; }