예제 #1
0
        public void CheckPrivacy()
        {
            bool accepted = PlayerPrefsExtension.GetBool(PrivacyKey + privacyIndex);

            if (!accepted)
            {
                return;
            }

            onPrivacyPolicyAccepted?.Invoke();
            Destroy(gameObject);
        }
예제 #2
0
 public SettingsData Read()
 {
     if (PlayerPrefs.HasKey("locale"))
     {
         return(new SettingsData
         {
             locale = PlayerPrefsExtension.GetEnum <Locales>("locale"),
             isLocaleSet = PlayerPrefsExtension.GetBool("isLocaleSet")
         });
     }
     else
     {
         return(new SettingsData());
     }
 }