Пример #1
0
 public void Awake()
 {
     if (PlayerPrefs.HasKey("old_player"))
     {
         Saver.Load();
     }
     else
     {
         Saver.Init();
         Saver.Save();
         PlayerPrefs.SetInt("old_player", 1);
     }
     Saver.saveFile.InitPermanentDataSetting();
 }
Пример #2
0
 public void OnApplicationQuit()
 {
     Saver.Save();
 }