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

View File

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