// Use this for initialization void Start() { ad = GameObject.FindGameObjectWithTag("Ad").GetComponent <GoogleMobileAdsScript>(); ad.RequestBanner(); ad.ShowBanner(); _camera = GameObject.Find("Main Camera").GetComponent <MenuCameraLogic>(); menuNum = 0; }
// Use this for initialization void Start() { ad = GameObject.FindGameObjectWithTag("Ad").GetComponent<GoogleMobileAdsScript>(); ad.RequestBanner (); ad.ShowBanner(); _camera = GameObject.Find("Main Camera").GetComponent<MenuCameraLogic>(); menuNum = 0; }
void Start() { GoogleMobileAdsScript.ShowBannerAd(); highScore = Instantiate(highScore); HighScoreLabel = Instantiate(HighScoreLabel); LastScoreLabel = Instantiate(LastScoreLabel); logo = Instantiate(logo); start = Instantiate(start); start.GetComponent <StartGame>().menu = gameObject; }
// Use this for initialization void Start() { ad = GameObject.FindGameObjectWithTag("Ad").GetComponent <GoogleMobileAdsScript>(); ad.RequestInterstitial(); destinationNode = nodes[size_x - 1, 0]; destinationNode.isBuildable = false; enemySpawnNode = nodes[0, size_z - 1]; enemySpawnNode.isBuildable = false; MakeGrid(); }
public AdPosition adPosition = AdPosition.Bottom; // position of banner ads void Awake() { if (advertise == null) { // Makes the object target not be destroyed automatically when loading a new scene DontDestroyOnLoad(gameObject); advertise = this; } else if (advertise != this) { Destroy(gameObject); } }
private void OnDestroy() { if (++gameCount == 5) { GoogleMobileAdsScript.ShowInterstitial(); gameCount = 0; } LockRegister.DestroyBoard(); Destroy(score); Destroy(restart); Destroy(multiTouch); Destroy(wall); Instantiate(menu); }
private void Start() { GoogleMobileAdsScript.HideBannerAd(); LockRegister = lockStorage.locks[0].GetComponent <LockRegister>(); multiTouch = Instantiate(multiTouch); multiTouch.GetComponent <MultiTouch>().lockRegister = LockRegister; restart = Instantiate(restart); restart.GetComponent <Restart>().game = gameObject; score = Instantiate(score); wall = Instantiate(wall); SpawnLock(); }
public GoogleMobileAdsScript() { instance = this; }
void Start() { admob = GetComponent <GoogleMobileAdsScript>(); StartCoroutine(RequestAds()); }
// Use this for initialization void Start() { this.ad = GameObject.FindGameObjectWithTag("Ad").GetComponent<GoogleMobileAdsScript>(); this.ad.RequestInterstitial (); this.LoadMapTexture (); this.PlaceDoodads (); }