Exemple #1
0
    private void Start()
    {
        // Initialize MAS SDK
        // Check COPPA and avoid ask the user
        // every time the app boot
        if (PlayerPrefs.HasKey("COPPA"))
        {
            bool COPPACheck = PlayerPrefs.GetInt("COPPA", 0) == 1;

            if (COPPACheck)
            {
                Yodo1U3dMas.InitializeSdk();
                Debug.Log("SDK initialized, COPPA AGREE");

                ConsoleText.text = "SDK initialized, COPPA AGREE";


                //Show the events in the Scene console
                Coinstext.text = "Coins: " + coins.ToString();
            }

            else if (!COPPACheck)
            {
                Yodo1U3dMas.InitializeSdk();
                Debug.Log("SDK initialized, COPPA NOT AGREE");

                ConsoleText.text = "SDK initialized, COPPA NOT AGREE";


                Coinstext.text = "Coins: " + coins.ToString();
            }
        }
    }
Exemple #2
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);
    }
Exemple #3
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);
    }
Exemple #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";
    }
Exemple #5
0
 private void Start()
 {
     SetDelegates();
     Yodo1U3dMas.InitializeSdk();
 }
Exemple #6
0
 private void InitializeSdk()
 {
     Yodo1U3dMas.InitializeSdk();
 }