From b882653768d61f2ab0425b762705aee2ffde4427 Mon Sep 17 00:00:00 2001 From: vis2k Date: Tue, 2 Mar 2021 15:56:33 +0800 Subject: [PATCH] syntax --- .../Runtime/Transport/KCP/MirrorTransport/KcpTransport.cs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Assets/Mirror/Runtime/Transport/KCP/MirrorTransport/KcpTransport.cs b/Assets/Mirror/Runtime/Transport/KCP/MirrorTransport/KcpTransport.cs index 1a54c32d8..1b423f6c7 100644 --- a/Assets/Mirror/Runtime/Transport/KCP/MirrorTransport/KcpTransport.cs +++ b/Assets/Mirror/Runtime/Transport/KCP/MirrorTransport/KcpTransport.cs @@ -208,11 +208,6 @@ public override int GetMaxPacketSize(int channelId = Channels.DefaultReliable) public override int GetMaxBatchSize(int channelId) => KcpConnection.UnreliableMaxMessageSize; - public override string ToString() - { - return "KCP"; - } - // server statistics public int GetAverageMaxSendRate() => server.connections.Count > 0 @@ -313,6 +308,8 @@ void OnLogStatistics() Debug.Log(log); } } + + public override string ToString() => "KCP"; } } //#endif MIRROR <- commented out because MIRROR isn't defined on first import yet