better-ui-manager #2

Merged
BitterSmile merged 25 commits from better-ui-manager into main 2023-09-02 14:34:16 +02:00
Showing only changes of commit 611f417d5e - Show all commits

View File

@ -138,7 +138,7 @@ namespace NEG.UI
{
if (currentShownPopup.data != data)
{
Debug.LogError("Popup was not shown");
//Debug.LogError("Popup was not shown");
return;
}
UpdatePopupsState(false);
@ -167,7 +167,10 @@ namespace NEG.UI
return;
}
currentShownPopup.data?.Hide();
if (currentShownPopup.data == null)
return;
currentShownPopup.data.PopupClosedEvent -= PopupClosed;
currentShownPopup.data.Hide();
currentShownPopup.data = null;
}