Exemplo n.º 1
0
 public static void SavePreferences()
 {
     EditorPrefs.SetBool(AUTOSAVE_ENABLED_KEY, autosaveEnabled);
     EditorPrefs.SetInt(SAVE_INTERVAL_INDEX_KEY, saveIntervalIndex);
     saveInterval = intervalValues [saveIntervalIndex];
     EditorPrefs.SetBool(LOG_SAVE_EVENT_KEY, logSaveEvent);
     EditorPrefs.SetBool(SAVE_ASSETS_KEY, saveAssets);
     EditorPrefs.SetBool(SAVE_ON_HIERARCHY_CHANGE_KEY, saveOnHierarchyChanges);
     EditorPrefs.SetInt(HIERARCHY_CHANGE_COUNT_TRIGGER_KEY, hierarchyChangeCountTrigger);
     EditorPrefs.SetBool(SAVE_BEFORE_RUN_KEY, saveBeforeRun);
     EditorPrefs.SetBool(SAVE_UNNAMED_NEW_SCENE_KEY, saveUnnamedNewScene);
     AutoSave.LoadPreferences();
 }