예제 #1
0
 static LevelPresetData()
 {
     _save = MyPlayerPrefs.GetObject(saveKey, new LevelPresetSaveable());
     MyPlayerPrefs.OnSave += () => MyPlayerPrefs.SetObject(saveKey, _save);
 }
예제 #2
0
 static void InitData()
 {
     settings              = MyPlayerPrefs.GetObject(prefsKey, new AudioSettings());
     MyPlayerPrefs.OnSave += () => MyPlayerPrefs.SetObject(prefsKey, settings);
 }