void Start()
 {
     Instance          = this;
     adManager         = GameObject.FindGameObjectWithTag("Ad_Manager");
     combinedAdManager = adManager.GetComponent <CombinedAdManager>();
     unityAdManager    = unityAdManager.GetComponent <UnityAdsManager>();
 }
示例#2
0
    // Start is called before the first frame update
    void Start()
    {
        adManager         = GameObject.FindGameObjectWithTag("Ad_Manager");
        unityAdManager    = adManager.GetComponent <UnityAdsManager>();
        adMobManager      = adManager.GetComponent <GoogleAdMobManager>();
        combinedAdManager = adManager.GetComponent <CombinedAdManager>();

        //combinedAdManager.showRandomBanner();
    }
示例#3
0
    // Start is called before the first frame update
    void Start()
    {
        //int randomNumber = Random.Range(1, 3);
        Instance          = this;
        adManager         = GameObject.FindGameObjectWithTag("Ad_Manager");
        unityAdManager    = adManager.GetComponent <UnityAdsManager>();
        adMobManager      = adManager.GetComponent <GoogleAdMobManager>();
        combinedAdManager = adManager.GetComponent <CombinedAdManager>();

        Debug.Log("HEYY");
        int randomNumber = Random.Range(1, 3);

        Debug.Log("Random " + randomNumber);
        if (randomNumber == 1)
        {
            adMobManager.RequestBanner();
            Debug.Log("showing ad mob");
        }
        if (randomNumber == 2)
        {
            unityAdManager.PlayBannerAd();
            Debug.Log("showing unity");
        }
    }