void Start() { Instance = this; adManager = GameObject.FindGameObjectWithTag("Ad_Manager"); combinedAdManager = adManager.GetComponent <CombinedAdManager>(); unityAdManager = unityAdManager.GetComponent <UnityAdsManager>(); }
// 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(); }
// 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"); } }