From 30a963b3946d5c61edb423f9d61cbd1031e99abe Mon Sep 17 00:00:00 2001 From: zhangaotian <8474238@qq.com> Date: Thu, 4 Jul 2024 18:53:45 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=B5=8B=E8=AF=95=E3=80=91=E5=B9=BF?= =?UTF-8?q?=E5=91=8A=E6=92=AD=E6=94=BE=E5=89=8D=E6=9A=82=E5=81=9C=E6=B8=B8?= =?UTF-8?q?=E6=88=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/Scripts/Gameplay/UI/Shop/UIBuyGoodsController.cs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Forest/Assets/Scripts/Gameplay/UI/Shop/UIBuyGoodsController.cs b/Forest/Assets/Scripts/Gameplay/UI/Shop/UIBuyGoodsController.cs index 47cf8ee..3206f4a 100644 --- a/Forest/Assets/Scripts/Gameplay/UI/Shop/UIBuyGoodsController.cs +++ b/Forest/Assets/Scripts/Gameplay/UI/Shop/UIBuyGoodsController.cs @@ -141,17 +141,23 @@ public class UIBuyGoodsController : UIWindow private void WatchADFree(PropType prop) { + //暂停游戏 + Time.timeScale = 0f; LevelManager.Instance.WatchADGetProp(prop, ADSuccessCallBack, ADFailCallBack); } private void ADSuccessCallBack() { + //恢复游戏 + Time.timeScale = 1f; LevelManager.Instance.ADGetPropTips = _stringTipsContent; CloseWin(); } private void ADFailCallBack() { + //恢复游戏 + Time.timeScale = 1f; BIManager.Instance.TrackEventLevel(Event.level_ad_show_fail, "101"); BIManager.Instance.TrackEventLevelOnce(EventFirst.fte_level_ad_show_fail, "101"); UIManager.Instance.OpenWindow(UIConstants.UITips, "Tip_AD_NotReady", () => { });