コード例 #1
0
    IEnumerator OnUnityAdsDidErrorCoro(string message)
    {
        yield return(null);

        Debug.LogError($"PlatformUnityAdsInit.OnUnityAdsDidError: message={message}");
        PlatformUnityAds.ShowAdsErrorPopup(message);
    }
コード例 #2
0
    IEnumerator OnUnityAdsDidFinishCoro(string placementId, ShowResult showResult)
    {
        yield return(null);

        PlatformInterface.instance.logger.Log($"PlatformUnityAdsInit.OnUnityAdsDidFinish: placementId={placementId}, showResult={showResult}");
        PlatformInterface.instance.backgroundTimeCompensator.EndBackgroundState(this);
        PlatformUnityAds.HandleShowResult(showResult);
    }
コード例 #3
0
ファイル: AdTestButton.cs プロジェクト: gasbank/unity-balloon
 public void ShowContinueAd_UnityAds()
 {
     PlatformUnityAds.TryShowRewardedAd(null, null);
 }
コード例 #4
0
ファイル: AdTestButton.cs プロジェクト: gasbank/unity-balloon
 public void ShowInterstitialAd_UnityAds()
 {
     PlatformUnityAds.TryShowInterstitialAd(null, null, 1);
 }