◆ JoinOrCreateRoom()

static void EdgeMultiplay.EdgeManager.JoinOrCreateRoom ( string  playerName,
int  playerAvatar,
int  maxPlayersPerRoom,
Dictionary< string, string >  playerTags = null 
)
static

Sends Join Or Create Room request to the server, the server will try to match a player with any available room if the server didn't find an available room, the server will create a room for the player

use public override void OnRoomCreated or public override void OnRoomJoin to get the server response

Parameters
playerNameplayer name to be assigned to player
playerAvatar(integer value) Avatar Index from EdgeManager Spawn Prefabs
maxPlayersPerRoomIn case of room creation, the maximum players allowed in the room
playerTagsDictionary<string,string> custom data associated with the player