using Axibug; using System.IO; using UnityEngine; using static Axibug.Utility; namespace Game { public static partial class Utility { public class Path { public static string GetLocalVersionFilePath() { //接口留起,以后修改 return $"{Application.persistentDataPath}/{HotPlatform.versionTxt}"; } public static string GetRemoteVersionFilePath() { return Text.Format("{0}/{1}/{2}", AppEntry.BuiltinData.BuildInfo.RootUrl, HotPlatform.GetPlatformPath(), HotPlatform.versionTxt); } public static string GetRemoteFilePath(string version, string fileName) { return Text.Format("{0}/{1}/{2}/{3}", AppEntry.BuiltinData.BuildInfo.RootUrl, HotPlatform.GetPlatformPath(), version, fileName); } public static string GetUpdateWriteFilePath(string fileName) { return $"{Application.persistentDataPath}/{fileName}"; } public static string GetMetadataAssemblyAsset(string dllName) { return Text.Format("Assets/HybridCLRBuildCache/AssetBundleSourceData/{0}/{1}.dll.bytes", HotPlatform.GetPlatformPath(), dllName); } } } }