From 29173dd2f1b446c0730763ee43570432274dc4b5 Mon Sep 17 00:00:00 2001 From: kimura Date: Thu, 10 Feb 2022 13:45:28 +0900 Subject: [PATCH] =?UTF-8?q?=E5=BA=83=E5=91=8A=E8=A6=96=E8=81=B4=E3=82=AB?= =?UTF-8?q?=E3=82=A6=E3=83=B3=E3=83=88=E3=81=8C=E5=85=A5=E3=82=89=E3=81=AA?= =?UTF-8?q?=E3=81=8B=E3=81=A3=E3=81=9F=E5=A0=B4=E5=90=88=E3=81=AE=E4=BE=8B?= =?UTF-8?q?=E5=A4=96=E3=82=B9=E3=83=AD=E3=83=BC=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- popcorn/Assets/MyGame/Scripts/AdManager.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/popcorn/Assets/MyGame/Scripts/AdManager.cs b/popcorn/Assets/MyGame/Scripts/AdManager.cs index c57d3aba..eeff5521 100644 --- a/popcorn/Assets/MyGame/Scripts/AdManager.cs +++ b/popcorn/Assets/MyGame/Scripts/AdManager.cs @@ -139,6 +139,13 @@ public sealed class AdManager : SingletonMonoBehaviour { private void RewardAdCallbackClose(bool success){ resumeGame(); _rewardAdCallback(success); + + // 広告カウント不具合確認用 + if (_rewardAdClose && !_rewardAdFinish) + { + Debug.Log($"_async_frame_count:{_async_frame_count}"); + throw new Exception("RewardAd closed but not finish."); + } } private void pauseGame(){