Compare commits

...

2 Commits

2 changed files with 5 additions and 4 deletions

View File

@ -28,11 +28,11 @@ public class UIADPopupController : UIWindow
LevelManager.Instance.WatchADGetRandomProp(ADSuccessCallBack, ADFailCallBack); LevelManager.Instance.WatchADGetRandomProp(ADSuccessCallBack, ADFailCallBack);
} }
private void ADSuccessCallBack() private async void ADSuccessCallBack()
{ {
var dataProp = _propConfig?.GetOrDefault(LevelManager.Instance.RandomProp)?.SKName; var dataProp = _propConfig?.GetOrDefault(LevelManager.Instance.RandomProp)?.SKName;
var stringName = StringManager.Instance.GetTextByKey(dataProp); 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(); }); () => { LevelManager.Instance.ResetLevel(); });
CloseWindow(); CloseWindow();
} }

View File

@ -10,10 +10,10 @@ using Gameplay.Level;
using Framework.Event; using Framework.Event;
using Framework.Manager; using Framework.Manager;
using Framework.Constants; using Framework.Constants;
using Gameplay.ForestLevel;
using Event = cfg.BI.Event; using Event = cfg.BI.Event;
using Cysharp.Threading.Tasks; using Cysharp.Threading.Tasks;
using System.Collections.Generic; using System.Collections.Generic;
using Gameplay.ForestLevel;
namespace Gameplay.Manager namespace Gameplay.Manager
{ {
@ -539,6 +539,7 @@ namespace Gameplay.Manager
BIManager.Instance.TrackEventLevelOnce(EventFirst.fte_level_ad_show_success, "102", "AddTime"); BIManager.Instance.TrackEventLevelOnce(EventFirst.fte_level_ad_show_success, "102", "AddTime");
AudioManager.Instance.PlaySound(AudioType.SOUND, "S_AddTime", new UnityAudio(false)); AudioManager.Instance.PlaySound(AudioType.SOUND, "S_AddTime", new UnityAudio(false));
PlayAnimation = true; PlayAnimation = true;
ShowGfx();
_adGetTimeSuccess?.Invoke(); _adGetTimeSuccess?.Invoke();
} }