Rewarded ads removed
This commit is contained in:
@@ -9,6 +9,7 @@ using UnityEngine.SceneManagement;
|
||||
|
||||
public class AdsManager : MonoBehaviour
|
||||
{
|
||||
const bool ENABLE_REWARDED = false;
|
||||
private static AdsManager _instance;
|
||||
public static AdsManager instance => _instance;
|
||||
|
||||
@@ -61,15 +62,17 @@ public class AdsManager : MonoBehaviour
|
||||
SceneManager.LoadScene("Login");
|
||||
Debug.Log("Google ads init,"+initStatus);
|
||||
Debug.Log("Loading ads now");
|
||||
|
||||
if(ENABLE_REWARDED){
|
||||
rewardedAd = new RewardedAd((Application.platform == RuntimePlatform.IPhonePlayer) ?ios_rewardedId :rewardedId);
|
||||
rewardedAd.OnUserEarnedReward += OnRewardedComplete;
|
||||
rewardedAd.OnAdFailedToLoad += OnRewardedFailed;
|
||||
rewardedAd.OnAdFailedToShow += OnRewardedFailed;
|
||||
LoadRewarded();
|
||||
|
||||
|
||||
}
|
||||
// RequestBanner();
|
||||
LoadInterestitial();
|
||||
LoadRewarded();
|
||||
}
|
||||
|
||||
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:
|
||||
Reference in New Issue
Block a user