测试包;退出骑行场景释放tcp资源

This commit is contained in:
CaiYanPeng 2021-11-23 16:06:04 +08:00
parent 8c5ad08475
commit 732e5ac6c6
6 changed files with 15 additions and 8 deletions

View File

@ -109,8 +109,8 @@ public static class App
//Host = "http://192.168.0.101:5087/";
//UdpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 21000);
//TcpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 21001);
Host = "https://wx.powerfun.com.cn/";
//Host = "http://192.168.0.101:5084/";
//Host = "https://wx.powerfun.com.cn/";
Host = "http://192.168.0.101:5085/";
UdpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 11000);
TcpAddress = new IPEndPoint(IPAddress.Parse("47.97.84.8"), 11001);
Debug.unityLogger.logEnabled = false;

View File

@ -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)
{

View File

@ -89,6 +89,7 @@ public class CyclingController : DeviceServiceMonoBase
void OnDestroy()
{
MapUDPService.Dispose();
Resources.UnloadUnusedAssets();
GC.Collect();
}

View File

@ -6,8 +6,8 @@ EditorBuildSettings:
serializedVersion: 2
m_Scenes:
- enabled: 1
path: Assets/Scenes/Login.unity
guid: 6dce3e17997730b4492f91dd8fede429
path: Assets/Scenes/Login-Mobile.unity
guid: 4be878da00cf764499988cf403faf94d
- enabled: 1
path: Assets/Scenes/MainScene.unity
guid: ab586a3c1bacd4a48a55178eb06fe0cc

View File

@ -38,6 +38,7 @@ GraphicsSettings:
- {fileID: 16000, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 16001, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 17000, guid: 0000000000000000f000000000000000, type: 0}
- {fileID: 16003, guid: 0000000000000000f000000000000000, type: 0}
m_PreloadedShaders: []
m_SpritesDefaultMaterial: {fileID: 10754, guid: 0000000000000000f000000000000000,
type: 0}

View File

@ -133,7 +133,7 @@ PlayerSettings:
16:10: 1
16:9: 1
Others: 1
bundleVersion: 2.0.7
bundleVersion: 2.0.8
preloadedAssets: []
metroInputSource: 0
wsaTransparentSwapchain: 0
@ -180,7 +180,7 @@ PlayerSettings:
Android: com.ZhiXingPai.PowerFunUnity
buildNumber:
iPhone: 2.0.7.0
AndroidBundleVersionCode: 10
AndroidBundleVersionCode: 11
AndroidMinSdkVersion: 24
AndroidTargetSdkVersion: 30
AndroidPreferredInstallLocation: 1
@ -256,7 +256,7 @@ PlayerSettings:
clonedFromGUID: c0afd0d1d80e3634a9dac47e8a0426ea
templatePackageId: com.unity.template.3d@4.2.8
templateDefaultScene: Assets/Scenes/SampleScene.unity
AndroidTargetArchitectures: 3
AndroidTargetArchitectures: 1
AndroidSplashScreenScale: 0
androidSplashScreen: {fileID: 0}
AndroidKeystoreName: '{inproject}: Assets/Plugins/Android/powerfun.keystore'
@ -868,7 +868,7 @@ PlayerSettings:
platformArchitecture:
iPhone: 1
scriptingBackend:
Android: 1
Android: 0
Standalone: 0
il2cppCompilerConfiguration:
Standalone: 0