Ejemplo n.º 1
0
 /// <summary>
 /// Сохранить счет игрока
 /// </summary>
 /// <param name="point">Новый счет</param>
 public void SavePointPlayer(int point)
 {
     if (point > bestPoint)
     {
         PlayerPrefs.SetInt(TagsPlayerPref.GetBestScore(), point);
         PlayerPrefs.Save();
     }
 }
Ejemplo n.º 2
0
 public PointPlayer()
 {
     if (PlayerPrefs.HasKey(TagsPlayerPref.GetBestScore()))
     {
         BestPoint = PlayerPrefs.GetInt(TagsPlayerPref.GetBestScore());
     }
     else
     {
         BestPoint = 0;
     }
 }