Rewarded ads removed
This commit is contained in:
parent
ad588fa9e7
commit
59812ed84e
|
|
@ -9,6 +9,7 @@ using UnityEngine.SceneManagement;
|
||||||
|
|
||||||
public class AdsManager : MonoBehaviour
|
public class AdsManager : MonoBehaviour
|
||||||
{
|
{
|
||||||
|
const bool ENABLE_REWARDED = false;
|
||||||
private static AdsManager _instance;
|
private static AdsManager _instance;
|
||||||
public static AdsManager instance => _instance;
|
public static AdsManager instance => _instance;
|
||||||
|
|
||||||
|
|
@ -61,15 +62,17 @@ public class AdsManager : MonoBehaviour
|
||||||
SceneManager.LoadScene("Login");
|
SceneManager.LoadScene("Login");
|
||||||
Debug.Log("Google ads init,"+initStatus);
|
Debug.Log("Google ads init,"+initStatus);
|
||||||
Debug.Log("Loading ads now");
|
Debug.Log("Loading ads now");
|
||||||
|
|
||||||
|
if(ENABLE_REWARDED){
|
||||||
rewardedAd = new RewardedAd((Application.platform == RuntimePlatform.IPhonePlayer) ?ios_rewardedId :rewardedId);
|
rewardedAd = new RewardedAd((Application.platform == RuntimePlatform.IPhonePlayer) ?ios_rewardedId :rewardedId);
|
||||||
rewardedAd.OnUserEarnedReward += OnRewardedComplete;
|
rewardedAd.OnUserEarnedReward += OnRewardedComplete;
|
||||||
rewardedAd.OnAdFailedToLoad += OnRewardedFailed;
|
rewardedAd.OnAdFailedToLoad += OnRewardedFailed;
|
||||||
rewardedAd.OnAdFailedToShow += OnRewardedFailed;
|
rewardedAd.OnAdFailedToShow += OnRewardedFailed;
|
||||||
|
LoadRewarded();
|
||||||
|
|
||||||
|
}
|
||||||
// RequestBanner();
|
// RequestBanner();
|
||||||
LoadInterestitial();
|
LoadInterestitial();
|
||||||
LoadRewarded();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private static UnityEvent onInterestitialClosed = new UnityEvent();
|
private static UnityEvent onInterestitialClosed = new UnityEvent();
|
||||||
|
|
|
||||||
7
Assets/GoogleService-Info.plist.meta
Normal file
7
Assets/GoogleService-Info.plist.meta
Normal file
|
|
@ -0,0 +1,7 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: f64bb0c427cd33042a6319f560a28e74
|
||||||
|
DefaultImporter:
|
||||||
|
externalObjects: {}
|
||||||
|
userData:
|
||||||
|
assetBundleName:
|
||||||
|
assetBundleVariant:
|
||||||
Loading…
Reference in New Issue
Block a user