123456789101112131415161718192021222324 |
- using System;
- using System.Runtime.CompilerServices;
- namespace Mirror
- {
- public class NetworkConnectionToServer : NetworkConnection
- {
-
- [MethodImpl(MethodImplOptions.AggressiveInlining)]
- protected override void SendToTransport(ArraySegment<byte> segment, int channelId = Channels.Reliable) =>
- Transport.active.ClientSend(segment, channelId);
-
- public override void Disconnect()
- {
-
-
-
- isReady = false;
- NetworkClient.ready = false;
- Transport.active.ClientDisconnect();
- }
- }
- }
|