1234567891011121314151617181920212223242526 |
- using System;
- using System.Runtime.CompilerServices;
- namespace Mirror
- {
- public class NetworkConnectionToServer : NetworkConnection
- {
- public override string address => "";
-
- [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();
- }
- }
- }
|