Beispiel #1
0
        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);
        }
Beispiel #2
0
 public static void LoadConfigs()
 {
     mLevelsConfig  = LoadLevelsConfig();
     mBalanceConfig = LoadBalanceConfig();
     mStringsConfig = LoadStringsConfig();
 }