NBC修改

This commit is contained in:
bob
2025-07-03 14:16:18 +08:00
parent 4febfadd56
commit 800e96aac7
2083 changed files with 60081 additions and 2942 deletions

View File

@@ -1,51 +0,0 @@
using System.IO;
using UnityEngine;
namespace NBC.Asset
{
public static class Const
{
public const string BundleDirName = "Bundles";
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}";
public static readonly string StreamingAssetsPath =
$"{Application.streamingAssetsPath}{Path.DirectorySeparatorChar}";
public static string RemoteUrl = "http://127.0.0.1:8181/";
public static bool Offline;
public static bool Simulate;
public static int DownloadTimeOut = 10;
public static string GetStreamingPath(string file)
{
return $"{StreamingAssetsPath}{file}";
}
public static string GetCachePath(string file)
{
return $"{SavePath}{file}";
}
public static string GetCacheTempPath(string file)
{
return $"{SavePath}{file}.temp";
}
public static string GetRemotePath(string file)
{
if (!Application.isEditor && IsWebGLPlatform)
{
return $"{RemoteUrl}/{file}";
}
return $"{RemoteUrl}{BundleDirName}/{file}";
}
}
}

View File

@@ -1,3 +0,0 @@
fileFormatVersion: 2
guid: de19e53b3f774094918543bbbc7318a0
timeCreated: 1624159347