forfeiture, abandoning, entry_fee_collection at start
This commit is contained in:
@@ -89,6 +89,13 @@ public class NetManager : NetworkManager
|
||||
|
||||
public override void OnServerDisconnect(NetworkConnectionToClient conn)
|
||||
{
|
||||
if (conn != null && conn.identity != null)
|
||||
{
|
||||
var netPlayer = conn.identity.GetComponent<NetPlayer>();
|
||||
if (netPlayer != null && GameManager.instance != null)
|
||||
GameManager.instance.OnDedicatedMatchPlayerDisconnected(netPlayer.myTeam);
|
||||
}
|
||||
|
||||
if (conn != null)
|
||||
Logger.Log($"Mirror server: client disconnected (connId={conn.connectionId})");
|
||||
base.OnServerDisconnect(conn);
|
||||
|
||||
Reference in New Issue
Block a user