From abf5357f49240d6797c7b6b2699e6a181d525538 Mon Sep 17 00:00:00 2001 From: ALEXTANG <574809918@qq.com> Date: Fri, 18 Aug 2023 13:04:53 +0800 Subject: [PATCH] =?UTF-8?q?=E7=BB=99=E4=B8=8D=E6=94=AF=E6=8C=81WEBGL?= =?UTF-8?q?=E7=9A=84=E5=A2=9E=E5=8A=A0=E5=AE=8F=E5=AE=9A=E4=B9=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 给不支持WEBGL的增加宏定义 --- Assets/GameScripts/HotFix/GameBase/Loom/Loom.cs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Assets/GameScripts/HotFix/GameBase/Loom/Loom.cs b/Assets/GameScripts/HotFix/GameBase/Loom/Loom.cs index e020612e..4b6b645c 100644 --- a/Assets/GameScripts/HotFix/GameBase/Loom/Loom.cs +++ b/Assets/GameScripts/HotFix/GameBase/Loom/Loom.cs @@ -1,3 +1,4 @@ +#if !UNITY_WEBGL using UnityEngine; using System.Collections.Generic; using System; @@ -10,19 +11,18 @@ using System.Linq; { aucThread = new Thread(ReceiveMsg); aucThread.Start(); - } - + } + //进程调用主线程方法 MainPack pack = (MainPack)MainPack.Descriptor.Parser.ParseFrom(buffer, 0, len); Loom.QueueOnMainThread((param) => { UdpHandleResponse(pack); }, null); - + *******************************************************************************/ namespace GameBase { - /// /// Loom多线程通信。 /// @@ -187,4 +187,5 @@ namespace GameBase } } } -} \ No newline at end of file +} +#endif \ No newline at end of file