| Core/Common/ResourcesPath.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/ClientVersion/VersionUpdateWin.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 | |
| System/ClientVersion/VersionUtility.cs | ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史 |
Core/Common/ResourcesPath.cs
@@ -1,9 +1,10 @@ using UnityEngine; using System; using System.IO; [XLua.LuaCallCSharp] public class ResourcesPath : Singleton<ResourcesPath> { public const string AssetDependentFileBundleName = #if UNITY_ANDROID "android"; @@ -58,7 +59,22 @@ StreamingAssetPath = Application.streamingAssetsPath + "/standalone/"; #endif ExternalStorePath = Application.persistentDataPath + "/"; if (!Application.isEditor) { switch (Application.platform) { case RuntimePlatform.WindowsPlayer: ExternalStorePath = Path.GetDirectoryName(Application.streamingAssetsPath) + "/ExternalAssets/"; break; default: ExternalStorePath = Application.persistentDataPath + "/"; break; } } else { ExternalStorePath = Application.persistentDataPath + "/"; } DebugEx.Log("Stream Path: " + StreamingAssetPath); DebugEx.Log("External Path: " + ExternalStorePath); System/ClientVersion/VersionUpdateWin.cs
@@ -198,14 +198,19 @@ SDKUtility.Instance.InstallAPK(VersionUtility.Instance.GetApkLocalUrl()); break; case VersionUtility.Step.DownLoadPrepared: if (Application.platform == RuntimePlatform.Android) switch (Application.platform) { VersionUtility.Instance.StartDownLoad(); } else if (Application.platform == RuntimePlatform.IPhonePlayer) { Application.OpenURL(VersionUtility.Instance.GetApkRemoteUrl()); //打开应用商店链接 case RuntimePlatform.Android: VersionUtility.Instance.StartDownLoad(); break; case RuntimePlatform.IPhonePlayer: Application.OpenURL(VersionUtility.Instance.GetApkRemoteUrl()); //打开应用商店链接 break; case RuntimePlatform.WindowsPlayer: //打开下载链接 Application.OpenURL(VersionUtility.Instance.GetApkRemoteUrl()); break; } break; case VersionUtility.Step.DownLoadFailed: System/ClientVersion/VersionUtility.cs
@@ -74,7 +74,7 @@ versionInfo = JsonMapper.ToObject<VersionInfo>(_result); if (NeedNormalUpdate()) { if (Application.isMobilePlatform) if (Application.isMobilePlatform || Application.platform == RuntimePlatform.WindowsPlayer) { RequestApkDownConfigs(); } @@ -137,6 +137,10 @@ step = Step.DownLoadPrepared; WindowCenter.Instance.OpenFromLocal<VersionUpdateWin>(); break; case RuntimePlatform.WindowsPlayer: step = Step.DownLoadPrepared; WindowCenter.Instance.OpenFromLocal<VersionUpdateWin>(); break; default: step = Step.Completed; break;