From 89e0739f749a1c3342fcfab4a92f884036e31fba Mon Sep 17 00:00:00 2001 From: zhangaotian <8474238@qq.com> Date: Fri, 23 Aug 2024 11:34:55 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90Bug=E3=80=91=E4=BF=AE=E5=A4=8D?= =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=97=B6=E9=97=B4=E5=90=8E=E7=B2=BE=E7=81=B5?= =?UTF-8?q?=E7=89=B9=E6=95=88=E6=B6=88=E5=A4=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Scripts/Framework/UI/Other/UIADPopupController.cs | 6 +++--- Forest/Assets/Scripts/Gameplay/Manager/LevelManager.cs | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Forest/Assets/Scripts/Framework/UI/Other/UIADPopupController.cs b/Forest/Assets/Scripts/Framework/UI/Other/UIADPopupController.cs index c4c2fb9..52516c7 100644 --- a/Forest/Assets/Scripts/Framework/UI/Other/UIADPopupController.cs +++ b/Forest/Assets/Scripts/Framework/UI/Other/UIADPopupController.cs @@ -28,11 +28,11 @@ public class UIADPopupController : UIWindow LevelManager.Instance.WatchADGetRandomProp(ADSuccessCallBack, ADFailCallBack); } - private void ADSuccessCallBack() + private async void ADSuccessCallBack() { var dataProp = _propConfig?.GetOrDefault(LevelManager.Instance.RandomProp)?.SKName; var stringName = StringManager.Instance.GetTextByKey(dataProp); - UIManager.Instance.OpenWindow(UIConstants.UITips, string.Format(_stringContent, stringName), + await UIManager.Instance.OpenWindow(UIConstants.UITips, string.Format(_stringContent, stringName), () => { LevelManager.Instance.ResetLevel(); }); CloseWindow(); } @@ -40,7 +40,7 @@ public class UIADPopupController : UIWindow private void ADFailCallBack() { BIManager.Instance.TrackEventLevel(Event.ad_load_fail, "103"); - BIManager.Instance.TrackEventLevelOnce(EventFirst.fte_level_ad_show_fail,"103"); + BIManager.Instance.TrackEventLevelOnce(EventFirst.fte_level_ad_show_fail, "103"); UIManager.Instance.OpenWindow(UIConstants.UITips, "Tip_AD_NotReady", () => { }); } } \ No newline at end of file diff --git a/Forest/Assets/Scripts/Gameplay/Manager/LevelManager.cs b/Forest/Assets/Scripts/Gameplay/Manager/LevelManager.cs index a8a85c0..a2017f4 100644 --- a/Forest/Assets/Scripts/Gameplay/Manager/LevelManager.cs +++ b/Forest/Assets/Scripts/Gameplay/Manager/LevelManager.cs @@ -10,10 +10,10 @@ using Gameplay.Level; using Framework.Event; using Framework.Manager; using Framework.Constants; +using Gameplay.ForestLevel; using Event = cfg.BI.Event; using Cysharp.Threading.Tasks; using System.Collections.Generic; -using Gameplay.ForestLevel; namespace Gameplay.Manager { @@ -539,6 +539,7 @@ namespace Gameplay.Manager BIManager.Instance.TrackEventLevelOnce(EventFirst.fte_level_ad_show_success, "102", "AddTime"); AudioManager.Instance.PlaySound(AudioType.SOUND, "S_AddTime", new UnityAudio(false)); PlayAnimation = true; + ShowGfx(); _adGetTimeSuccess?.Invoke(); }