React to lobby and player state changes by subscribing to events from the PlayFlowLobbyManagerV2.
PlayFlowLobbyManagerV2
uses a system of UnityEvent
s to communicate state changes and important occurrences to your game. By subscribing to these events, you can create a responsive UI and trigger game logic at the right moments.
All events are accessible through the PlayFlowLobbyManagerV2.Instance.Events
property, which is an instance of PlayFlowEvents
.
AddListener
method. Itβs best practice to do this after the manager has been initialized.
PlayFlowEvents
.
Lobby
object.
Argument: Lobby
Lobby
Lobby
data changes. This can be due to players joining/leaving, player state changes, or host actions.
Argument: Lobby
void
Lobby
ConnectionInfo
Lobby
PlayerAction
contains the ID of the player who joined.
Argument: PlayerAction
PlayerAction
contains the ID of the player who left.
Argument: PlayerAction
void
void
string