AdManager 修正
This commit is contained in:
parent
ace8740f7f
commit
10229d8d4c
|
|
@ -18,6 +18,8 @@ public sealed class AdManager : SingletonMonoBehaviour<AdManager> {
|
|||
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<AdManager> {
|
|||
}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<AdManager> {
|
|||
this.RewardAdCallbackClose(_rewardAdFinish);
|
||||
}
|
||||
}
|
||||
if(_interstitialAdOpen){
|
||||
_interstitialAdOpen = false;
|
||||
pauseGame();
|
||||
}else if(_interstitialAdClose){
|
||||
_interstitialAdClose = false;
|
||||
resumeGame();
|
||||
LoadInterstitial ();
|
||||
InterstitialIntervalReset();
|
||||
}
|
||||
}
|
||||
|
||||
void OnApplicationPause(bool isPaused) {
|
||||
|
|
|
|||
Loading…
Reference in New Issue