fix(LatencySimulation): unreliable now sends over the correct channel

This commit is contained in:
mischa 2024-04-07 23:40:00 +08:00 committed by MrGadget
parent 52d10e8c5f
commit 4fe0720070

View File

@ -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;
}