Class BaseNetworkManager
Instead of using just NetworkManager, assign this as the NetworkManager to be used to ensure player cleanup is done properly. If you have your own custom network manager, you can extend this class as long as you call base.OnServerDisconnect(conn), or just add this code into your NetworkManager. Also make sure to assign ChatSystem in the inspector
Namespace: LlamaSoftware.Chat
Assembly: LlamaSoftware.Chat.dll
Syntax
public class BaseNetworkManager : NetworkManager
Fields
chatSystem
Declaration
[SerializeField]
protected ChatSystem chatSystem
Field Value
Type | Description |
---|---|
ChatSystem |
Methods
OnServerDisconnect(NetworkConnection)
Called automatically by UNET on the server when a player disconnects
Declaration
public override void OnServerDisconnect(NetworkConnection conn)
Parameters
Type | Name | Description |
---|---|---|
NetworkConnection | conn | Connection that was disconnected |