mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 11:00:32 +00:00
SendToReadyObservers: use explicit type
This commit is contained in:
parent
5ffdd06602
commit
940a467035
@ -414,7 +414,7 @@ public static void SendToReadyObservers<T>(NetworkIdentity identity, T message,
|
|||||||
ArraySegment<byte> segment = writer.ToArraySegment();
|
ArraySegment<byte> segment = writer.ToArraySegment();
|
||||||
|
|
||||||
int count = 0;
|
int count = 0;
|
||||||
foreach (NetworkConnection conn in identity.observers.Values)
|
foreach (NetworkConnectionToClient conn in identity.observers.Values)
|
||||||
{
|
{
|
||||||
bool isOwner = conn == identity.connectionToClient;
|
bool isOwner = conn == identity.connectionToClient;
|
||||||
if ((!isOwner || includeOwner) && conn.isReady)
|
if ((!isOwner || includeOwner) && conn.isReady)
|
||||||
|
Loading…
Reference in New Issue
Block a user