表格重构

This commit is contained in:
2025-10-10 17:57:36 +08:00
parent bf2f6d2680
commit bf7b1bbbb2
133 changed files with 4481 additions and 1366 deletions

View File

@@ -0,0 +1,30 @@
using UnityEngine;
namespace NBF
{
public partial class ConfigAssets : ScriptableObject
{
// public static string SavePath => $"Assets/ResRaw/Config/ConfigAssets.asset";
public static string SavePath => $"Assets/Resources/Config/ConfigAssets.asset";
private static ConfigAssets _inst;
public static ConfigAssets Instance => _inst;
public static void Init()
{
var asset = Resources.Load<ConfigAssets>("config/ConfigAssets");
if (asset != null)
{
asset.AssociationContexts();
_inst = asset;
}
// var assetProvider = NBC.Asset.Assets.LoadAsset<ConfigAssets>(SavePath);
// if (assetProvider != null && assetProvider.Asset is ConfigAssets asset)
// {
// asset.AssociationContexts();
// _inst = asset;
// }
}
}
}