void receivedAdEvent() { #if UNITY_ANDROID StartCoroutine(ADSController.hideBanner()); #endif StartCoroutine(ADSController.showBanner()); }
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(); } } } }
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(); } } } }
void interstitialDismissingScreenEvent() { StartCoroutine(ADSController.refresh()); StartCoroutine(ADSController.hideBanner()); }
void receivedAdEvent() { StartCoroutine(ADSController.hideBanner()); }