From bcbb80abab96f5022115c17f2601b47215bf5361 Mon Sep 17 00:00:00 2001 From: Chipmunk <65827213+ChipmunkMC@users.noreply.github.com> Date: Tue, 13 Jun 2023 17:16:37 -0400 Subject: [PATCH] (maybe) fix NetworkManager on WebGL --- Assets/Scripts/Assembly-CSharp/NetworkManager.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/Assets/Scripts/Assembly-CSharp/NetworkManager.cs b/Assets/Scripts/Assembly-CSharp/NetworkManager.cs index 934fa0db..9632a616 100644 --- a/Assets/Scripts/Assembly-CSharp/NetworkManager.cs +++ b/Assets/Scripts/Assembly-CSharp/NetworkManager.cs @@ -169,6 +169,14 @@ public class NetworkManager : Singleton private IEnumerator CheckAccess(float timeout) { #if UNITY_WEBGL + if (!this.connected && this.OnNetworkChange != null) + { + this.OnNetworkChange(true); + } + if (this.OnCheckResponse != null) + { + this.OnCheckResponse(true); + } this.connected = true; this.OnCheckResponse = null; this.resolvingConnectivity = false;