Make the Backpack UI visible in the AppleHillsLevel as well
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user