Пример #1
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;
    }
Пример #2
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;
    }
Пример #3
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;
 }
Пример #4
0
    // 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);
        }
    }
Пример #6
0
    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);
        }
    }
Пример #7
0
 private void OnDestroy()
 {
     if (++gameCount == 5)
     {
         GoogleMobileAdsScript.ShowInterstitial();
         gameCount = 0;
     }
     LockRegister.DestroyBoard();
     Destroy(score);
     Destroy(restart);
     Destroy(multiTouch);
     Destroy(wall);
     Instantiate(menu);
 }
Пример #8
0
    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;
 }
Пример #10
0
 void Start()
 {
     admob = GetComponent <GoogleMobileAdsScript>();
     StartCoroutine(RequestAds());
 }
Пример #11
0
    // Use this for initialization
    void Start()
    {
        this.ad = GameObject.FindGameObjectWithTag("Ad").GetComponent<GoogleMobileAdsScript>();
        this.ad.RequestInterstitial ();

        this.LoadMapTexture ();
        this.PlaceDoodads ();
    }