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); } }
private void Load() { string timesStr = SafePrefs.Load(timesSavePref); if (timesStr != "") { lastClickTime = DateTime.Parse(timesStr); } else { lastClickTime = new DateTime(2000, 1, 1); } }