Class LobbyNetworkManager
Extends NetworkManager to have a LobbyLoginController reference. Updates the LobbyLoginController player list after players diconnect.
Inherited Members
Namespace: LlamaSoftware.Chat.Demo.Lobby
Assembly: LlamaSoftware.Chat.Demo.dll
Syntax
public class LobbyNetworkManager : BaseNetworkManager
Fields
LobbyLoginController
Declaration
[SerializeField]
protected LobbyLoginController LobbyLoginController
Field Value
Type | Description |
---|---|
LobbyLoginController |
Methods
OnServerDisconnect(NetworkConnection)
Called on the server when a player disconnects. Will call UpdatePlayers() after a brief delay to update
Declaration
public override void OnServerDisconnect(NetworkConnection conn)
Parameters
Type | Name | Description |
---|---|---|
NetworkConnection | conn | Network Connection of the disconnected player. |
OnStopClient()
Since Login scene and Lobby scene are combined in the demo, this disables
Declaration
public override void OnStopClient()
UpdatePlayers()
Updates players in the LobbyLoginController.
Declaration
protected void UpdatePlayers()