1
This commit is contained in:
@@ -107,14 +107,24 @@ namespace BITKit.UX
|
||||
Entry(initialPanel);
|
||||
}
|
||||
|
||||
if (!EntryQueue.TryPop(out var next)) return;
|
||||
if (!EntryQueue.TryPop(out var next) || next is null) return;
|
||||
|
||||
if (Panels.ContainsKey(next.Index) is false) return;
|
||||
|
||||
while (EntryCompletedPanels.TryPop(out var entryCompletedPanel))
|
||||
{
|
||||
entryCompletedPanel?.Exit();
|
||||
}
|
||||
|
||||
next.Entry();
|
||||
try
|
||||
{
|
||||
next.Entry();
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
Debug.LogWarning(next.Index);
|
||||
Debug.LogException(e);
|
||||
}
|
||||
|
||||
BITAppForUnity.AllowCursor.SetElements(this, next.AllowCursor);
|
||||
BITInputSystem.AllowInput.SetElements(this, next.AllowInput);
|
||||
|
Reference in New Issue
Block a user