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