引导中不响应返回
parent
01719564fe
commit
647eae5b14
|
|
@ -22,9 +22,14 @@ public partial class UIManager : Singlenton<UIManager>, IInitable, IUpdatable
|
|||
|
||||
private Dictionary<GameObject, UIWindow> _uiWindowObjDic = new Dictionary<GameObject, UIWindow>();
|
||||
public Dictionary<GameObject, UIWindow> UIWindowObjDic => _uiWindowObjDic;
|
||||
/// <summary>
|
||||
/// 是否响应返回键
|
||||
/// </summary>
|
||||
public bool IsEnableBack { get; set; }
|
||||
|
||||
public void Init()
|
||||
{
|
||||
IsEnableBack = true;
|
||||
_AllWindowMeta();
|
||||
if (DeviceHelper.IsFullScreenIOS())
|
||||
{
|
||||
|
|
@ -630,6 +635,8 @@ public partial class UIManager : Singlenton<UIManager>, IInitable, IUpdatable
|
|||
|
||||
private async void _OnAndroidClickBack()
|
||||
{
|
||||
if (!IsEnableBack)
|
||||
return;
|
||||
|
||||
if (_uiWindowStack.Count > 0)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -99,6 +99,7 @@ namespace Gameplay.Guide
|
|||
int completeGroupId = (int)Actor.Instance.Logic.GetCount((uint)LogicID.NewGuideProgress);
|
||||
if (guide.Key > completeGroupId)
|
||||
{
|
||||
UIManager.Instance.IsEnableBack = false;
|
||||
DebugUtil.Log($"<color=#00FA9A>已完成的引导组id:{completeGroupId},开始引导组id:{guide.Key}</color>");
|
||||
curGroup = new(guide.Key, guide.Value);
|
||||
curGroup.BeginGuide();
|
||||
|
|
@ -168,6 +169,7 @@ namespace Gameplay.Guide
|
|||
if (IsGuiding)
|
||||
curGroup.EndGuide();
|
||||
|
||||
UIManager.Instance.IsEnableBack = true;
|
||||
curGroup = null;
|
||||
UIManager.Instance.CloseWindow(UINameConst.UI_Guide);
|
||||
UIManager.Instance.CloseWindow(UINameConst.UI_GuideTip);
|
||||
|
|
|
|||
Loading…
Reference in New Issue