Example #1
0
    public void CCPANO()
    {
        //Set CCPA to NO
        PlayerPrefs.SetInt("CCPA", 0);
        Yodo1U3dMas.SetCCPA(false);
        Debug.Log("User Not Agree with CCPA");
        Text ConsoleText = GetComponent <AdsManager>().ConsoleText;

        ConsoleText.text = "User Not Agree with CCPA";
    }
Example #2
0
    public void CCPAYES()
    {
        //Set CCPA to YES
        PlayerPrefs.SetInt("CCPA", 1);
        Yodo1U3dMas.SetCCPA(true);
        Debug.Log("User Agree with CCPA");
        Text ConsoleText = GetComponent <AdsManager>().ConsoleText;

        ConsoleText.text = "User Agree with CCPA";
    }
Example #3
0
    public void SetStatusYes()
    {
        //Save user preference for YES
        PlayerPrefs.SetInt("CCPA", 1);
        Yodo1U3dMas.SetCCPA(true);
        PlayerPrefs.Save();
        Debug.Log("User Agree with CCPA");
        Text ConsoleText = GetComponent<AdsManager>().ConsoleText;
        ConsoleText.text = "User Agree with CCPA";
        Yodo1U3dMas.InitializeSdk();

        if (CCPAPopup.activeSelf)
            CCPAPopup.SetActive(false);
    }
Example #4
0
    public void SetStatusNo()
    {
        //Save user preference for NO,
        //and initialize the SDK with this privacy parameters
        PlayerPrefs.SetInt("CCPA", 0);
        Yodo1U3dMas.SetCCPA(false); ;
        PlayerPrefs.Save();
        Debug.Log("User Not Agree with CCPA");
        Text ConsoleText = GetComponent<AdsManager>().ConsoleText;
        ConsoleText.text = "User Not Agree with CCPA";
        Yodo1U3dMas.InitializeSdk();

        if (CCPAPopup.activeSelf)
            CCPAPopup.SetActive(false);
    }
Example #5
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";
    }
Example #6
0
 private void SetPrivacy(bool gdpr, bool coppa, bool ccpa)
 {
     Yodo1U3dMas.SetGDPR(gdpr);
     Yodo1U3dMas.SetCOPPA(coppa);
     Yodo1U3dMas.SetCCPA(ccpa);
 }