From 10229d8d4c8006a26f053c081c021f016c8e7b1c Mon Sep 17 00:00:00 2001 From: atusi Date: Fri, 12 Nov 2021 14:49:40 +0900 Subject: [PATCH] =?UTF-8?q?AdManager=20=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- popcorn/Assets/MyGame/Scripts/AdManager.cs | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/popcorn/Assets/MyGame/Scripts/AdManager.cs b/popcorn/Assets/MyGame/Scripts/AdManager.cs index a92cb4b3..1181aa9e 100644 --- a/popcorn/Assets/MyGame/Scripts/AdManager.cs +++ b/popcorn/Assets/MyGame/Scripts/AdManager.cs @@ -18,6 +18,8 @@ public sealed class AdManager : SingletonMonoBehaviour { private bool _rewardAdFinish = false; private float _timeScale = 0.0f; + + void Awake(){ #if DEVELOPMENT_BUILD IronSource.Agent.validateIntegration (); @@ -38,7 +40,6 @@ public sealed class AdManager : SingletonMonoBehaviour { }else if(_rewardAdClose){ if(_rewardAdFinish){ _rewardAdClose = false; - InterstitialIntervalReset(); this.RewardAdCallbackClose(_rewardAdFinish); }else if(ASYNC_FRAME_LIMIT > _async_frame_count){ _async_frame_count++; @@ -47,15 +48,6 @@ public sealed class AdManager : SingletonMonoBehaviour { this.RewardAdCallbackClose(_rewardAdFinish); } } - if(_interstitialAdOpen){ - _interstitialAdOpen = false; - pauseGame(); - }else if(_interstitialAdClose){ - _interstitialAdClose = false; - resumeGame(); - LoadInterstitial (); - InterstitialIntervalReset(); - } } void OnApplicationPause(bool isPaused) {