继续推动Config更新(本机测试发生错误)
This commit is contained in:
@@ -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];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user