public static void RewriteLevelsConfig(LevelsConfig levelsConfig) { var configName = Path.ChangeExtension(Types.Levels.ToString(), "json"); var configPath = Path.Combine(Application.streamingAssetsPath, configName); var jsonString = JsonUtility.ToJson(levelsConfig, true); File.WriteAllText(configPath, jsonString); }
public static void LoadConfigs() { mLevelsConfig = LoadLevelsConfig(); mBalanceConfig = LoadBalanceConfig(); mStringsConfig = LoadStringsConfig(); }