Example #1
0
        public static void Load()
        {
            SettingsEditor.Load();

            if (i != null)
            {
                i.Resize();
                return;
            }

            i = JsonUtility.FromJson <SettingsProject>(fs.ReadAllText(Package.projectSettingsPath));
            if (i == null)
            {
                i = new SettingsProject();
                Save();
            }
            i.Resize();
        }
Example #2
0
 public static void Save()
 {
     File.WriteAllText(projectSettingsPath, JsonUtility.ToJson(i, true));
     SettingsEditor.Save();
 }