Make the Backpack UI visible in the AppleHillsLevel as well

This commit is contained in:
Michal Adam Pikulski
2025-10-22 09:05:18 +02:00
parent 5763aeb4b3
commit faed21edab

View File

@@ -2,6 +2,8 @@
using Core;
using UnityEngine;
// TODO: Yeet this class
namespace UI.CardSystem
{
/// <summary>
@@ -62,20 +64,21 @@ namespace UI.CardSystem
private void ApplyVisibility(string sceneName)
{
if (targetRoot == null)
return;
if (string.IsNullOrEmpty(sceneName))
return;
if (hideInBootstrapScene && sceneName == "BootstrapScene")
{
SetActiveSafe(false);
return;
}
bool shouldShow = sceneName != startingSceneName;
SetActiveSafe(shouldShow);
SetActiveSafe(true);
// if (targetRoot == null)
// return;
//
// if (string.IsNullOrEmpty(sceneName))
// return;
//
// if (hideInBootstrapScene && sceneName == "BootstrapScene")
// {
// SetActiveSafe(false);
// return;
// }
//
// bool shouldShow = sceneName != startingSceneName;
// SetActiveSafe(shouldShow);
}
private void SetActiveSafe(bool active)