setting change

This commit is contained in:
Bob.Song
2026-02-02 17:58:39 +08:00
parent f33f61f515
commit 55a92d9b23
127 changed files with 803 additions and 222 deletions

View File

@@ -9,7 +9,8 @@ namespace NBC.Asset
public const string VersionFileName = "version.json";
public static bool IsWebGLPlatform => Application.platform == RuntimePlatform.WebGLPlayer;
public static readonly string SavePath =
$"{Application.persistentDataPath}{Path.DirectorySeparatorChar}{BundleDirName}{Path.DirectorySeparatorChar}";
@@ -20,9 +21,10 @@ namespace NBC.Asset
public static bool Offline;
public static bool Simulate;
public static bool NotCache;
public static int DownloadTimeOut = 10;
public static string GetStreamingPath(string file)
{
@@ -31,6 +33,11 @@ namespace NBC.Asset
public static string GetCachePath(string file)
{
if (NotCache)
{
return GetStreamingPath(file);
}
return $"{SavePath}{file}";
}
@@ -45,6 +52,7 @@ namespace NBC.Asset
{
return $"{RemoteUrl}/{file}";
}
return $"{RemoteUrl}{BundleDirName}/{file}";
}
}