public void CheckPrivacy() { bool accepted = PlayerPrefsExtension.GetBool(PrivacyKey + privacyIndex); if (!accepted) { return; } onPrivacyPolicyAccepted?.Invoke(); Destroy(gameObject); }
public SettingsData Read() { if (PlayerPrefs.HasKey("locale")) { return(new SettingsData { locale = PlayerPrefsExtension.GetEnum <Locales>("locale"), isLocaleSet = PlayerPrefsExtension.GetBool("isLocaleSet") }); } else { return(new SettingsData()); } }