setting change
This commit is contained in:
@@ -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}";
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user