tanghai 8 жил өмнө
parent
commit
a70f17d072

+ 2 - 2
Server/Hotfix/System/NetOuterComponentSystem.cs

@@ -26,14 +26,14 @@ namespace Hotfix
 	{
 		public static void Awake(this NetOuterComponent self)
 		{
-			self.Awake(NetworkProtocol.KCP);
+			self.Awake(NetworkProtocol.TCP);
 			self.MessagePacker = new ProtobufPacker();
 			self.MessageDispatcher = new OuterMessageDispatcher();
 		}
 
 		public static void Awake(this NetOuterComponent self, IPEndPoint ipEndPoint)
 		{
-			self.Awake(NetworkProtocol.KCP, ipEndPoint);
+			self.Awake(NetworkProtocol.TCP, ipEndPoint);
 			self.MessagePacker = new ProtobufPacker();
 			self.MessageDispatcher = new OuterMessageDispatcher();
 		}

+ 1 - 1
Unity/Assets/Scripts/Component/NetOuterComponent.cs

@@ -18,7 +18,7 @@
 	{
 		public void Awake()
 		{
-			this.Awake(NetworkProtocol.KCP);
+			this.Awake(NetworkProtocol.TCP);
 			this.MessagePacker = new ProtobufPacker();
 			this.MessageDispatcher = new ClientDispatcher();
 		}