NetworkGlobalEvents Methods
The NetworkGlobalEvents type exposes the following members.
Methods
Name | Description | |
---|---|---|
Instance |
Gets the singleton instance of NetworkGlobalEvents.
If the instance doesn't exist, logs a warning during play mode.
|
|
OnClientConnected |
Called when a client successfully connects to the server.
|
|
OnClientDisconnected |
Called when a client disconnects from the server.
|
|
OnClientLoginFailed |
Called when a client's login attempt fails.
|
|
OnClientLoginSucess |
Called when a client's login attempt is successful.
|
|
OnConnected |
Called when a client successfully connects.
|
|
OnConnectedOnRelay |
Called when a client connects on a relay server.
|
|
OnConnectionFailed |
Called when a connection attempt fails.
|
|
OnDisconnected |
Called when a client disconnects.
|
|
OnLobbyCreationFailed |
Called when a lobby creation attempt fails.
|
|
OnLobbyCreationSucess |
Called when a lobby is successfully created.
|
|
OnLobbyJoinFailed |
Called when an attempt to join a lobby fails.
|
|
OnLobbyJoinSuccess |
Called when joining a lobby is successful.
|
|
OnLoginFailed |
Called when a login attempt fails.
|
|
OnLoginSucess |
Called when a login attempt is successful.
|
|
OnMessageReceived |
Called when a message is received from a client.
|
|
OnServerRestarted |
Called when the server is restarted.
|