예제 #1
0
    void receivedAdEvent()
    {
#if UNITY_ANDROID
        StartCoroutine(ADSController.hideBanner());
#endif
        StartCoroutine(ADSController.showBanner());
    }
예제 #2
0
    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();
    }
예제 #3
0
 void interstitialLeavingApplicationEvent()
 {
     StartCoroutine(ADSController.showBanner());
 }