继续推动Config更新(本机测试发生错误)

This commit is contained in:
2025-12-19 01:01:25 +08:00
parent ab60b35be2
commit 63b762453a
6 changed files with 118 additions and 103 deletions

View File

@@ -18,7 +18,7 @@ namespace Demo.Game
[Content] public GameController RootGameController;
[Setting]public string SourcePath;
[Setting] public string SourcePath;
[Header("GlobalConfig")]
public readonly HashSet<string> LoadedScriptSet = new();
public readonly Dictionary<int, ScriptableObject> LoadedScriptIndex = new();
@@ -55,7 +55,7 @@ namespace Demo.Game
/// <returns></returns>
public ScriptableObject FindWithIndex(int index)
{
if(index<0)
if (index < 0)
return null;
return LoadedScriptIndex[index];
}