mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 02:50:32 +00:00
fix(LatencySimulation): unreliable now sends over the correct channel
This commit is contained in:
parent
09ba26f239
commit
ae28158e70
@ -258,7 +258,7 @@ public override void ClientLateUpdate()
|
||||
#endif
|
||||
{
|
||||
// send and eat
|
||||
wrap.ClientSend(new ArraySegment<byte>(message.bytes), Channels.Reliable);
|
||||
wrap.ClientSend(new ArraySegment<byte>(message.bytes), Channels.Unreliable);
|
||||
unreliableClientToServer.RemoveAt(i);
|
||||
--i;
|
||||
}
|
||||
@ -303,7 +303,7 @@ public override void ServerLateUpdate()
|
||||
#endif
|
||||
{
|
||||
// send and eat
|
||||
wrap.ServerSend(message.connectionId, new ArraySegment<byte>(message.bytes), Channels.Reliable);
|
||||
wrap.ServerSend(message.connectionId, new ArraySegment<byte>(message.bytes), Channels.Unreliable);
|
||||
unreliableServerToClient.RemoveAt(i);
|
||||
--i;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user