void Awake() { Inst = this; if (!GoogleMobileAd.IsInited) { GoogleMobileAd.Init(); } banner = GoogleMobileAd.CreateAdBanner(TextAnchor.UpperCenter, GADBannerSize.SMART_BANNER); banner.ShowOnLoad = false; DontDestroyOnLoad(transform.gameObject); LoadFullScreen(); GoogleMobileAd.OnInterstitialClosed += OnInterstitialClosed; }
void Awake() { Inst = this; if (!GoogleMobileAd.IsInited) { GoogleMobileAd.Init(); } banner = GoogleMobileAd.CreateAdBanner(TextAnchor.UpperCenter, GADBannerSize.SMART_BANNER); banner.ShowOnLoad = false; DontDestroyOnLoad(transform.gameObject); LoadFullScreen(); GoogleMobileAd.OnInterstitialClosed += OnInterstitialClosed; }