forfeiture, abandoning, entry_fee_collection at start

This commit is contained in:
2026-08-14 11:13:01 +05:30
parent 9970488938
commit 74d9fae6e6
54 changed files with 6214 additions and 2576 deletions
+7
View File
@@ -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);