From: Isaac Paul Date: Sat, 26 Aug 2017 17:39:23 +0000 (-0400) Subject: Fix compilation issues with Unity3D X-Git-Tag: 1.0.0~96^2~1 X-Git-Url: https://git.deb.at/?a=commitdiff_plain;h=fe18dca108a8bdb4495cb1bcec3a7a1d2c4387b8;p=rhonda%2Fimpostor.hazel.git Fix compilation issues with Unity3D Auto properties initializes aren't supported in Unity3D --- 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.