From fe18dca108a8bdb4495cb1bcec3a7a1d2c4387b8 Mon Sep 17 00:00:00 2001 From: Isaac Paul Date: Sat, 26 Aug 2017 13:39:23 -0400 Subject: [PATCH] Fix compilation issues with Unity3D Auto properties initializes aren't supported in Unity3D --- Hazel/Udp/UdpConnection.Fragmented.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Hazel/Udp/UdpConnection.Fragmented.cs b/Hazel/Udp/UdpConnection.Fragmented.cs index f8acb32..c72576d 100644 --- a/Hazel/Udp/UdpConnection.Fragmented.cs +++ b/Hazel/Udp/UdpConnection.Fragmented.cs @@ -10,7 +10,8 @@ namespace Hazel.Udp /// /// The amount of data that can be put into a fragment. /// - public int FragmentSize { get; } = 65507 - 1 - 2 - 2 - 2; + public int FragmentSize { get { return _fragmentSize; } } + int _fragmentSize = 65507 - 1 - 2 - 2 - 2; /// /// The last fragmented message ID that was written. -- 2.39.5