Пример #1
0
    // Rewarded Ad

    public void OnShowRewardedAd()
    {
        // Check whether a rewarded ad is ready
        if (!Enhance.IsRewardedAdReady())
        {
            return;
        }
    }
Пример #2
0
 public void ShowRewarded()
 {
     Debug.Log("rewarded");
     if (Enhance.IsRewardedAdReady())
     {
         Enhance.ShowRewardedAd(OnRewardGranted, OnRewardDeclined, OnRewardUnavailable);
     }
 }
Пример #3
0
    // Rewarded Ad

    public void OnShowRewardedAd()
    {
        // Check whether a rewarded ad is ready

        if (!Enhance.IsRewardedAdReady())
        {
            writeLog("Rewarded ad is not ready");
            return;
        }

        // The ad is ready, show it

        Enhance.ShowRewardedAd(OnRewardGranted, OnRewardDeclined, OnRewardUnavailable);
        writeLog("Showing rewarded ad");
    }
Пример #4
0
 /**
  * Check if a rewarded ad is ready
  *
  * @return true if a rewarded ad is ready, false if not
  */
 public static bool IsRewardedAdReady(string placement = REWARDED_PLACEMENT_NEUTRAL)
 {
     return(Enhance.IsRewardedAdReady(placement));
 }