mirror of
https://github.com/Alex-Rachel/TEngine.git
synced 2025-08-14 16:51:28 +00:00
给不支持WEBGL的增加宏定义
给不支持WEBGL的增加宏定义
This commit is contained in:
@@ -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
|
Reference in New Issue
Block a user