测试包;退出骑行场景释放tcp资源
This commit is contained in:
1 parent
8c5ad08475
commit
732e5ac6c6
6 files changed
+15
-8
No files matched your search
@@ -167,6 +167,7 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
/// </summary>
|
||||
public static void SendGizpModel()
|
||||
{
|
||||
LastActiveTime = DateTime.Now;
|
||||
var client = App.AppVersion;
|
||||
#if UNITY_ANDROID
|
||||
client = "Unity-Android" + App.AppVersion;
|
||||
@@ -267,6 +268,10 @@ namespace Assets.Scenes.Ride.Scripts
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (_udpService != null)
|
||||
{
|
||||
_udpService.Close();
|
||||
}
|
||||
//停止计时
|
||||
if (heartbeat != null)
|
||||
{
|
||||
|
||||
@@ -89,6 +89,7 @@ public class CyclingController : DeviceServiceMonoBase
|
||||
|
||||
void OnDestroy()
|
||||
{
|
||||
MapUDPService.Dispose();
|
||||
Resources.UnloadUnusedAssets();
|
||||
GC.Collect();
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user