(maybe) fix NetworkManager on WebGL
This commit is contained in:
parent
b28e5044fb
commit
bcbb80abab
1 changed files with 8 additions and 0 deletions
|
@ -169,6 +169,14 @@ public class NetworkManager : Singleton<NetworkManager>
|
|||
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;
|
||||
|
|
Loading…
Reference in a new issue