private void OnWatchAdButtonClicked()
    {
        admob.RequestRewardAd();

        //disable the button:
        uiWatchAdButton.interactable = false;
        uiWatchAdText.text           = "Loading..";
    }
Exemplo n.º 2
0
    public void WatchAdButtonClick( )
    {
        isAdWatched = false;
        watchAdButton.interactable = false;
        watchAdButtonText.text     = "LOADING..";

        //Request & Show Ad

                #if UNITY_EDITOR
        StartCoroutine(SimulateEditorRequestRewardAd( ));
                #elif UNITY_ANDROID
        admob.RequestRewardAd();
                #endif
    }