コード例 #1
0
 // Token: 0x0600045B RID: 1115 RVA: 0x00013108 File Offset: 0x00011508
 public void HandleRewardBasedVideoClosed(object sender, EventArgs args)
 {
     Ads_Script.Reward_Video_Shown = true;
     if (GoogleMobileAdsDemoScript.VideoDone != null)
     {
         GoogleMobileAdsDemoScript.VideoDone(false);
     }
     MonoBehaviour.print("HandleRewardBasedVideoClosed event received");
 }
コード例 #2
0
    // Token: 0x0600045C RID: 1116 RVA: 0x00013130 File Offset: 0x00011530
    public void HandleRewardBasedVideoRewarded(object sender, Reward args)
    {
        if (GoogleMobileAdsDemoScript.VideoDone != null)
        {
            GoogleMobileAdsDemoScript.VideoDone(true);
        }
        Debug.Log("Rewarded..");
        string type = args.Type;

        MonoBehaviour.print("HandleRewardBasedVideoRewarded event received for " + args.Amount.ToString() + " " + type);
    }
コード例 #3
0
 // Token: 0x06000455 RID: 1109 RVA: 0x0001308A File Offset: 0x0001148A
 public void HandleInterstitialClosed(object sender, EventArgs args)
 {
     MonoBehaviour.print("HandleInterstitialClosed event received");
     if (Ads_Script.rewardInterstitalAd)
     {
         Ads_Script.Interstitial_Shown = false;
         if (GoogleMobileAdsDemoScript.VideoDone != null)
         {
             GoogleMobileAdsDemoScript.VideoDone(true);
         }
     }
     Ads_Script.Interstitial_Shown = true;
 }