Explorar o código

修复KCP bug

tanghai %!s(int64=7) %!d(string=hai) anos
pai
achega
329ec7957c

+ 1 - 0
Unity/Assets/Scripts/Module/Message/Network/KCP/KChannel.cs

@@ -52,6 +52,7 @@ namespace ETModel
 			this.RemoteConn = remoteConn;
 			this.remoteEndPoint = remoteEndPoint;
 			this.socket = socket;
+			this.parser = new PacketParser(this.recvBuffer);
 			kcp = new Kcp(this.RemoteConn, this.Output);
 			kcp.SetMtu(512);
 			kcp.NoDelay(1, 10, 2, 1);  //fast