void receivedAdEvent() { #if UNITY_ANDROID StartCoroutine(ADSController.hideBanner()); #endif StartCoroutine(ADSController.showBanner()); }
public void endScene(SceneEndedStatus status) { if (ADSController.isFullBannerReady()) { ADSController.instance.StartCoroutine(ADSController.showFullBanner()); } else { ADSController.instance.StartCoroutine(ADSController.showBanner()); } this.sceneEndedState = status; switch (this.sceneEndedState) { case SceneEndedStatus.won: { this.playEffect(wonAudio); PlayerStateControl.sharePlayer().setState(PlayerState.Winner); break; } case SceneEndedStatus.lost: { this.audioBackground.Stop(); PlayerStateControl.sharePlayer().setState(PlayerState.Dead); this.playEffect(lostAudio); Inventory.reset(); break; } } this.endScene(); }
void interstitialLeavingApplicationEvent() { StartCoroutine(ADSController.showBanner()); }