Exemple #1
0
 public static void GetData()
 {
     if (string.IsNullOrEmpty(PlayerPrefs.GetString(dataName)))
     {
         instance = new GameD();
     }
     else
     {
         instance = JsonUtility.FromJson <GameD>(PlayerPrefs.GetString(dataName));
     }
 }
Exemple #2
0
 void OnApplicationQuit()
 {
     GameD.SetData();
 }