Exemple #1
0
 public void CheckTargetAge()
 {
     if (PlayerPrefs.HasKey(Prefs.DATE_OF_BIRTH_PREF))
     {
         DateTime dateOfBirth = DateTime.Parse(SafePrefs.Load(Prefs.DATE_OF_BIRTH_PREF));
         SetTargetAge(dateOfBirth);
     }
     else
     {
         birthDatePanel.SetActive(true);
     }
 }
Exemple #2
0
    private void Load()
    {
        string timesStr = SafePrefs.Load(timesSavePref);

        if (timesStr != "")
        {
            lastClickTime = DateTime.Parse(timesStr);
        }
        else
        {
            lastClickTime = new DateTime(2000, 1, 1);
        }
    }