Beispiel #1
0
    // Start is called before the first frame update
    void Start()
    {
        GameObject bidmadManager = new GameObject("BidmadManager");

        bidmadManager.AddComponent <BidmadManager>();
        DontDestroyOnLoad(bidmadManager);
        var obj = FindObjectsOfType <BidmadManager>();

        if (obj.Length == 1)
        {
            DontDestroyOnLoad(bidmadManager);
        }

        else
        {
            Destroy(bidmadManager);
        }

        gGdpr = new BidmadGoogleGDPR();
        gGdpr.reset();
        gGdpr.setConsentInfoUpdateSuccessCallback(onConsentInfoUpdateSuccess);
        gGdpr.setConsentInfoUpdateFailureCallback(onConsentInfoUpdateFailure);
        gGdpr.setConsentFormLoadSuccessCallback(onConsentFormLoadSuccess);
        gGdpr.setConsentFormLoadFailureCallback(onConsentFormLoadFailure);
        gGdpr.setConsentFormDismissedCallback(onConsentFormDismissed);

        gGdpr.setDebug("24CA94DDEB5A9979BF934BB443157007", true);
        gGdpr.requestConsentInfoUpdate();

        BidmadCommon.setGdprConsent(false, true);
        Debug.Log("getGdprConsent : " + BidmadCommon.getGdprConsent(true));
        Debug.Log("getGdprConsent : " + BidmadCommon.getGdprConsent(false));

        #if UNITY_IOS
        BidmadCommon.reqAdTrackingAuthorization(adTrackingAuthCallback);
        #endif
    }
Beispiel #2
0
 // Start is called before the first frame update
 void Start()
 {
     BidmadCommon.setIsDebug(true);
 }