Esempio n. 1
0
    public void GDPRNO()
    {
        //Set GDPR to NO
        PlayerPrefs.SetInt("GDPR", 0);
        Yodo1U3dMas.SetGDPR(false);
        Debug.Log("User Not Agree with GDPR");
        Text ConsoleText = GetComponent <AdsManager>().ConsoleText;

        ConsoleText.text = "User Not Agree with GDPR";
    }
Esempio n. 2
0
    public void GDPRYES()
    {
        //Set GDPR to YES
        PlayerPrefs.SetInt("GDPR", 1);
        Yodo1U3dMas.SetGDPR(true);
        Debug.Log("User Agree with GDPR");
        Text ConsoleText = GetComponent <AdsManager>().ConsoleText;

        ConsoleText.text = "User Agree with GDPR";
    }
Esempio n. 3
0
    public void SetStatusNo()
    {
        //Save user preference for NO
        PlayerPrefs.SetInt("GDPR", 0);
        Yodo1U3dMas.SetGDPR(false);
        Debug.Log("User Not Agree with GDPR");
        Text ConsoleText = GetComponent <AdsManager>().ConsoleText;

        ConsoleText.text = "User Not Agree with GDPR";

        if (GDPRPopup.activeSelf)
        {
            GDPRPopup.SetActive(false);
        }
    }
Esempio n. 4
0
    public void SetStatusNo()
    {
        //Save user preference for NO, and automatically
        //set  GPDR and CCPA to NO closing the other popups
        //after that initialize the sdk with this privacy settings
        PlayerPrefs.SetInt("COPPA", 0);
        Yodo1U3dMas.SetCOPPA(false);

        PlayerPrefs.SetInt("GDPR", 0);
        Yodo1U3dMas.SetGDPR(true);

        PlayerPrefs.SetInt("CCPA", 0);
        Yodo1U3dMas.SetCCPA(false);

        GameObject CCPAPopup = GetComponent <CCPA>().CCPAPopup;

        Debug.Log("User Not Agree with CCPA");
        GameObject GDPRPopup = GetComponent <GDPR>().GDPRPopup;

        Debug.Log("User Not Agree with GDPR");

        CCPAPopup.SetActive(false);
        GDPRPopup.SetActive(false);

        Debug.Log("User Not Agree with COPPA");
        Text ConsoleText = GetComponent <AdsManager>().ConsoleText;

        ConsoleText.text = "User Not Agree with COPPA";

        if (COPPAPopup.activeSelf)
        {
            COPPAPopup.SetActive(false);
        }

        Yodo1U3dMas.InitializeSdk();

        ConsoleText.text = "SDK initialized, COPPA, GDPR AND CCPA NOT AGREE";
    }
Esempio n. 5
0
 private void SetPrivacy(bool gdpr, bool coppa, bool ccpa)
 {
     Yodo1U3dMas.SetGDPR(gdpr);
     Yodo1U3dMas.SetCOPPA(coppa);
     Yodo1U3dMas.SetCCPA(ccpa);
 }