void OnApplicationFocus(bool hasFocus)
 {
     if (hasFocus && urlOpened)
     {
         urlOpened = false;
         DataPrivacy.FetchOptOutStatus();
     }
 }
Пример #2
0
 public static void Initialize()
 {
     if (instance == null)
     {
         GameObject go = new GameObject("DataPrivacy");
         instance     = go.AddComponent <DataPrivacy>();
         go.hideFlags = HideFlags.HideAndDontSave;
         Object.DontDestroyOnLoad(go);
     }
 }
 void OpenDataPrivacyUrl()
 {
     interactable = false;
     DataPrivacy.FetchPrivacyUrl(OpenUrl, OnFailure);
 }