Join Room

Overview

Joins the private/public rooms of your game in the Lobby server.

Example

NetworkClient.Lobby.JoinRoom(roomId, (successful, reply, error) =>{
	if (successful) {
		Debug.Log("Joined room " + reply);
	}
	else {
		Debug.Log("Failed to Join room " + error);
	}
});
NetworkClient.Lobby.JoinRoomRandomly((successful, reply, error) =>{
	if (successful) {
		Debug.Log("Joined room randomly " + reply);
	}
	else {
		Debug.Log("Failed to Join room randomly" + error);
	}
});
 NetworkClient.Lobby.JoinOrCreateRoom(true, 4, 60, (successful, reply, error) =>{
    if (successful){
        Debug.Log("Joined or created room " + reply);
    }
    else{
        Debug.Log("Failed to join or create room " + error);
    }
});

Last updated