You've already forked Commercialization.topon
release: 1.4.8
This commit is contained in:
@@ -10,6 +10,9 @@ namespace AnyThinkAds
|
||||
{
|
||||
public class ATAdsClientFactory
|
||||
{
|
||||
private static IATInterstitialAdClient _sharedInterstitialAdClient;
|
||||
private static IATRewardedVideoAdClient _sharedRewardedVideoAdClient;
|
||||
|
||||
public static IATBannerAdClient BuildBannerAdClient()
|
||||
{
|
||||
#if UNITY_EDITOR
|
||||
@@ -27,17 +30,25 @@ namespace AnyThinkAds
|
||||
|
||||
public static IATInterstitialAdClient BuildInterstitialAdClient()
|
||||
{
|
||||
if (_sharedInterstitialAdClient != null)
|
||||
{
|
||||
return _sharedInterstitialAdClient;
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
// Testing UNITY_EDITOR first because the editor also responds to the currently
|
||||
// selected platform.
|
||||
#elif UNITY_ANDROID
|
||||
return new AnyThinkAds.Android.ATInterstitialAdClient();
|
||||
_sharedInterstitialAdClient = new AnyThinkAds.Android.ATInterstitialAdClient();
|
||||
return _sharedInterstitialAdClient;
|
||||
#elif (UNITY_5 && UNITY_IOS) || UNITY_IPHONE
|
||||
return new AnyThinkAds.iOS.ATInterstitialAdClient();
|
||||
_sharedInterstitialAdClient = new AnyThinkAds.iOS.ATInterstitialAdClient();
|
||||
return _sharedInterstitialAdClient;
|
||||
#else
|
||||
|
||||
#endif
|
||||
return new UnityInterstitialClient();
|
||||
_sharedInterstitialAdClient = new UnityInterstitialClient();
|
||||
return _sharedInterstitialAdClient;
|
||||
}
|
||||
|
||||
public static IATNativeAdClient BuildNativeAdClient()
|
||||
@@ -72,18 +83,26 @@ namespace AnyThinkAds
|
||||
|
||||
public static IATRewardedVideoAdClient BuildRewardedVideoAdClient()
|
||||
{
|
||||
if (_sharedRewardedVideoAdClient != null)
|
||||
{
|
||||
return _sharedRewardedVideoAdClient;
|
||||
}
|
||||
|
||||
#if UNITY_EDITOR
|
||||
// Testing UNITY_EDITOR first because the editor also responds to the currently
|
||||
// selected platform.
|
||||
|
||||
#elif UNITY_ANDROID
|
||||
return new AnyThinkAds.Android.ATRewardedVideoAdClient();
|
||||
_sharedRewardedVideoAdClient = new AnyThinkAds.Android.ATRewardedVideoAdClient();
|
||||
return _sharedRewardedVideoAdClient;
|
||||
#elif (UNITY_5 && UNITY_IOS) || UNITY_IPHONE
|
||||
return new AnyThinkAds.iOS.ATRewardedVideoAdClient();
|
||||
_sharedRewardedVideoAdClient = new AnyThinkAds.iOS.ATRewardedVideoAdClient();
|
||||
return _sharedRewardedVideoAdClient;
|
||||
#else
|
||||
|
||||
#endif
|
||||
return new UnityRewardedVideoAdClient();
|
||||
_sharedRewardedVideoAdClient = new UnityRewardedVideoAdClient();
|
||||
return _sharedRewardedVideoAdClient;
|
||||
}
|
||||
|
||||
public static IATSDKAPIClient BuildSDKAPIClient()
|
||||
|
||||
Reference in New Issue
Block a user