Skip to content

Commit 361b922

Browse files
committed
patch
1 parent cd18d78 commit 361b922

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

Assets/Mirror/Runtime/Transport/Ignorance/IgnoranceClassic.cs

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -159,7 +159,6 @@ public string GetClientPing()
159159
}
160160
#endregion
161161

162-
// TODO: Check this out.
163162
public override int GetMaxPacketSize(int channelId = 0)
164163
{
165164
return PacketCache.Length;
@@ -528,6 +527,16 @@ public void LateUpdate()
528527
}
529528
}
530529

530+
public override bool Available()
531+
{
532+
#if UNITY_WEBGL || UNITY_WSA
533+
// Ignorance is not available on these platforms.
534+
return false;
535+
#else
536+
return true;
537+
#endif
538+
}
539+
531540
public override string ToString()
532541
{
533542
// A little complicated if else mess.

0 commit comments

Comments
 (0)