disonncet grace improved

This commit is contained in:
2026-05-17 20:11:42 +05:30
parent aa924c71dc
commit 87301a228f
8 changed files with 54 additions and 207 deletions
+3
View File
@@ -17,9 +17,11 @@ public class NetManager : NetworkManager
static bool s_IntentionalClientDisconnect;
public static NetManager instance;
public override void Awake()
{
base.Awake();
instance = this;
Transport.active.OnClientError += OnTransportClientError;
}
@@ -279,4 +281,5 @@ public class NetManager : NetworkManager
reopenRequestInFlight = false;
}
}