OnLobbyCreated(Lobby)
This event is called when a lobby is created by the local user.
void Start()
{
LobbyEventsHandler.OnLobbyCreated += OnLobbyCreated;
}
void OnLobbyCreated(Lobby lobby)
{
Debug.Log("Lobby created with ID: " + lobby.LobbyID);
}
OnLobbyJoined(Lobby)
This event is called when an existing lobby is joined by the local user.
void Start()
{
LobbyEventsHandler.OnLobbyJoined += OnLobbyJoined;
}
void OnLobbyJoined(Lobby lobby)
{
Debug.Log("Lobby joined with ID: " + lobby.LobbyID);
}
OnLobbyLeft(Lobby)
This event is called when local player leaves the lobby.
void Start()
{
LobbyEventsHandler.OnLobbyLeft += OnLobbyLeft;
}
void OnLobbyLeft(Lobby lobby)
{
Debug.Log("Lobby update received with ID: " + lobby.LobbyID);
}
OnLobbyUpdated(Lobby)
This event is called when an update is received for the current lobby (other player joined/left).
void Start()
{
LobbyEventsHandler.OnLobbyUpdated += OnLobbyUpdated;
}
void OnLobbyUpdated(Lobby lobby)
{
Debug.Log("Lobby update received with ID: " + lobby.LobbyID);
}