Beispiel #1
0
    void receivedAdEvent()
    {
#if UNITY_ANDROID
        StartCoroutine(ADSController.hideBanner());
#endif
        StartCoroutine(ADSController.showBanner());
    }
Beispiel #2
0
    void Update()
    {
        if (Input.GetMouseButtonDown(0))
        {
            RaycastHit _hit;

            Ray _ray = Camera.main.ScreenPointToRay(Input.mousePosition);

            if (Physics.Raycast(_ray, out _hit, 100.0f))
            {
                if (_hit.collider.name == "MENU")
                {
                    ADSController.instance.StartCoroutine(ADSController.hideBanner());

                    CheckPoint.reset();

                    Director.sharedDirector().LoadLevelWithFade(LevelManager.getLevelID(Level.menu));
                }
                else if (_hit.collider.name == "CONTINUE")
                {
                    ADSController.instance.StartCoroutine(ADSController.hideBanner());

                    Director.sharedDirector().restartScene();
                }
            }
        }
    }
Beispiel #3
0
    void Update()
    {
        if (Inventory.getPoints() == 0 && Inventory.getEnemyDead() == 0)
        {
            this.active = true;
        }

        if (Inventory.getPoints() != 0 && Inventory.getEnemyDead() != 0 && !this.active)
        {
            StartCoroutine(countingBone(2));
        }


        if (Input.GetMouseButtonDown(0) && this.active)
        {
            RaycastHit _hit;

            Ray _ray = Camera.main.ScreenPointToRay(Input.mousePosition);

            if (Physics.Raycast(_ray, out _hit, 100.0f))
            {
                if (_hit.collider.name == "MENU")
                {
                    ADSController.instance.StartCoroutine(ADSController.hideBanner());

                    Director.sharedDirector().LoadLevelWithFade(LevelManager.getLevelID(Level.menu));
                }
                else if (_hit.collider.name == "PROXIMO")
                {
                    ADSController.instance.StartCoroutine(ADSController.hideBanner());

                    Director.sharedDirector().nextLevel();
                }
                else if (_hit.collider.name == "VOLTAR")
                {
                    ADSController.instance.StartCoroutine(ADSController.hideBanner());

                    Director.sharedDirector().restartScene();
                }
            }
        }
    }
Beispiel #4
0
 void interstitialDismissingScreenEvent()
 {
     StartCoroutine(ADSController.refresh());
     StartCoroutine(ADSController.hideBanner());
 }
Beispiel #5
0
 void receivedAdEvent()
 {
     StartCoroutine(ADSController.hideBanner());
 }