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", () => { });