87 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			C#
		
	
	
	
		
		
			
		
	
	
			87 lines
		
	
	
		
			2.4 KiB
		
	
	
	
		
			C#
		
	
	
	
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								using System.Collections;
							 | 
						|||
| 
								 | 
							
								using System.Collections.Generic;
							 | 
						|||
| 
								 | 
							
								using UnityEngine;
							 | 
						|||
| 
								 | 
							
								using System.Runtime.InteropServices;
							 | 
						|||
| 
								 | 
							
								using System;
							 | 
						|||
| 
								 | 
							
								using UnityEngine.UI;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								public class TGUniversalFunc : MonoBehaviour {
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    //banner
							 | 
						|||
| 
								 | 
							
								    public static Action onSetBannerListener_onAdLoaded;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    public static Action onSetBannerListener_onAdFailedToLoad;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    public static Action onSetBannerListener_onShowSuccess;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    public static Action onSetBannerListener_onClick;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    public static Action onSetBannerListener_onAdClosed;
							 | 
						|||
| 
								 | 
							
								    
							 | 
						|||
| 
								 | 
							
								    //interstitial
							 | 
						|||
| 
								 | 
							
								    public static Action onSetInterstitialListener_onAdLoaded;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    public static Action onSetInterstitialListener_onAdFailedToLoad;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    public static Action onSetInterstitialListener_onShowSuccess;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    public static Action onSetInterstitialListener_onShowFailed;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    public static Action onSetInterstitialListener_onAdClosed;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    public static Action onSetInterstitialListener_onClick;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    public static Action onSetIntersititalAdsEndPlaying;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    public static Action onSetInterstitialListener_onFailedToPlay;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    public static Action onSetInterstitialListener_onStartPlayVideo;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    public static Action onSetInterstitialListener_onEndPlaying;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    //Native
							 | 
						|||
| 
								 | 
							
								    public static Action onSetNativeListener_onAdLoaded;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    public static Action onSetNativeListener_onAdFailedToLoad;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    public static Action onSetNativeListener_onClick;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    public static Action onSetNativeListener_onShowSuccess;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    //reward
							 | 
						|||
| 
								 | 
							
								    public static Action onSetRewardListener_onRewardedVideoAdLoaded;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    public static Action onSetRewardListener_onRewardedVideoAdFailedToLoad;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    public static Action onSetRewardListener_onRewardedVideoStarted;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    public static Action<string> onSetRewardListener_onRewardedVideoAdClosed;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    public static Action onSetRewardListener_onRewardedVideoClickAd;
							 | 
						|||
| 
								 | 
							
								    
							 | 
						|||
| 
								 | 
							
								    public static Action onSetRewardListener_onRewardedVideoAdEnd;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    public static Action onSetRewardListener_onRewardedVideoAdPlayFail;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    public static Action onSetRewardListener_onRewarded;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    //splash
							 | 
						|||
| 
								 | 
							
								    public static Action onSetSplashListener_onAdLoaded;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    public static Action onSetSplashListener_onAdLoadFail;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    public static Action onSetSplashListener_onAdDidShow;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    public static Action onSetSplashListener_onAdDidClick;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    public static Action onSetSplashListener_onAdDidClose;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    //native banner
							 | 
						|||
| 
								 | 
							
								    public static Action onSetNativeBannerListener_onAdLoaded;
							 | 
						|||
| 
								 | 
							
								
							 | 
						|||
| 
								 | 
							
								    public static Action onSetNativeBannerListener_onAdLoadFail;
							 | 
						|||
| 
								 | 
							
								}
							 |