public void Awake() { if (PlayerPrefs.HasKey("old_player")) { Saver.Load(); } else { Saver.Init(); Saver.Save(); PlayerPrefs.SetInt("old_player", 1); } Saver.saveFile.InitPermanentDataSetting(); }
public void OnApplicationQuit() { Saver.Save(); }