给不支持WEBGL的增加宏定义

给不支持WEBGL的增加宏定义
This commit is contained in:
ALEXTANG
2023-08-18 13:04:53 +08:00
parent aab353cca3
commit abf5357f49

View File

@@ -1,3 +1,4 @@
#if !UNITY_WEBGL
using UnityEngine; using UnityEngine;
using System.Collections.Generic; using System.Collections.Generic;
using System; using System;
@@ -10,19 +11,18 @@ using System.Linq;
{ {
aucThread = new Thread(ReceiveMsg); aucThread = new Thread(ReceiveMsg);
aucThread.Start(); aucThread.Start();
} }
//进程调用主线程方法 //进程调用主线程方法
MainPack pack = (MainPack)MainPack.Descriptor.Parser.ParseFrom(buffer, 0, len); MainPack pack = (MainPack)MainPack.Descriptor.Parser.ParseFrom(buffer, 0, len);
Loom.QueueOnMainThread((param) => Loom.QueueOnMainThread((param) =>
{ {
UdpHandleResponse(pack); UdpHandleResponse(pack);
}, null); }, null);
*******************************************************************************/ *******************************************************************************/
namespace GameBase namespace GameBase
{ {
/// <summary> /// <summary>
/// Loom多线程通信。 /// Loom多线程通信。
/// <remarks></remarks> /// <remarks></remarks>
@@ -187,4 +187,5 @@ namespace GameBase
} }
} }
} }
} }
#endif