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