Example #1
0
 public static List <int> _star = new List <int>(); // danh sach star hien co moi level
 public static void Save_Star()
 {
     for (int i = 0; i < _star.Count; i++)
     {
         PlayerPrefs.DeleteKey("_star" + i);
         PlayerPrefs.SetString("_star" + i, TestLeaderBoard.EncryptString(_star[i].ToString(), "key"));
         PlayerPrefs.Save();
     }
 }
Example #2
0
 public static int campainNow = 0;//capain hien tai
 public static void SaveCampainNow()
 {
     PlayerPrefs.SetString("campainNow", TestLeaderBoard.EncryptString(campainNow.ToString(), "key"));
     PlayerPrefs.Save();
 }
Example #3
0
 public static int _level;//nhiem vu hien co cao nhat
 public static void Save_Level()
 {
     PlayerPrefs.SetString("_level", TestLeaderBoard.EncryptString(_level.ToString(), "key"));
     PlayerPrefs.Save();
 }