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(); }