【Bug】修复增加时间后精灵特效消失
parent
651870f891
commit
89e0739f74
|
@ -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", () => { });
|
||||
}
|
||||
}
|
|
@ -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();
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue