Make app switcher disappear when opening album
This commit is contained in:
@@ -45,12 +45,14 @@ namespace UI.CardSystem
|
||||
{
|
||||
openAlbumButton.onClick.RemoveListener(OnOpenAlbumClicked);
|
||||
}
|
||||
|
||||
Debug.Log("ALBUM: CardAlbumDestroyed");
|
||||
}
|
||||
|
||||
private void OnOpenAlbumClicked()
|
||||
{
|
||||
if (UIPageController.Instance == null) return;
|
||||
|
||||
|
||||
// Check if we're currently on the booster opening page
|
||||
if (UIPageController.Instance.CurrentPage == boosterOpeningPage)
|
||||
{
|
||||
@@ -71,6 +73,7 @@ namespace UI.CardSystem
|
||||
PlayerHudManager.Instance.appSwitcher.SetActive(false);
|
||||
}
|
||||
}
|
||||
PlayerHudManager.Instance.ToggleAppSwitcher(false);
|
||||
// If we're already on the album main page, do nothing
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user