StartAsClient() public method

public StartAsClient ( string name, string roomId, Action response ) : void
name string
roomId string
response Action
return void
    public void JoinGame(string hostName, string roomId, Action <ResponseType> response)
    {
                #if UNITY_EDITOR
        if (Connected)
        {
            Debug.LogWarning(Game.Name + " is attempting to join the '" + hostName + "' game but it is already connected to the '" + Host + "' game. This is not allowed: be sure to disconnect before joining a new room.");
            return;
        }
                #endif

        // Set the host
        Host = hostName;
        net.StartAsClient(Game.Name, roomId, (ResponseType res) => {
            if (res == ResponseType.Success)
            {
                Connected                  = true;
                net.onDisconnected         = OnDisconnect;
                net.onUpdateDroppedClients = OnUpdateDropped;
            }

            response(res);
        });
    }