可配置引擎
This commit is contained in:
@@ -112,9 +112,8 @@ namespace AibisDream.FixSystem
|
||||
Debug.Log("配置项名称为空");
|
||||
return;
|
||||
}
|
||||
|
||||
string formattedKey = JsonUtil.FormatAsJsonPath(CurDataKey);
|
||||
if (!ConfigUtil.Instance.TryLoadConfig<BodyModuleSystemData>(DataPath + formattedKey,
|
||||
|
||||
if (!ConfigUtil.Instance.TryLoadConfig<BodyModuleSystemData>(DataPath + CurDataKey,
|
||||
out var data))
|
||||
{
|
||||
Debug.Log("没有找到配置项");
|
||||
@@ -180,8 +179,7 @@ namespace AibisDream.FixSystem
|
||||
moduleDataArray = moduleDataArray
|
||||
};
|
||||
|
||||
string formattedKey = JsonUtil.FormatAsJsonPath(key);
|
||||
ConfigUtil.Instance.SaveConfig(systemData, DataPath + formattedKey);
|
||||
ConfigUtil.Instance.SaveConfig(systemData, DataPath + key);
|
||||
}
|
||||
|
||||
public void AddBodyModule()
|
||||
|
||||
Reference in New Issue
Block a user