给不支持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 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
{
/// <summary>
/// Loom多线程通信。
/// <remarks></remarks>
@@ -187,4 +187,5 @@ namespace GameBase
}
}
}
}
}
#endif