Add sad and trick level. Fix pausing bug

This commit is contained in:
WillJeynes
2026-08-27 14:37:12 +01:00
parent 3ca0c5330f
commit 9f16389b7a
11 changed files with 133 additions and 8 deletions
+14 -5
View File
@@ -25,11 +25,11 @@ public class StatusManager : Singleton<StatusManager>
public void PopulatePanels()
{
PopulatePanel(doorPanel, doorPrefab, LevelLoader.Instance.Doors.Cast<IDescribable>().ToList());
PopulatePanel(guardPanel, guardPrefab, LevelLoader.Instance.Guards.Cast<IDescribable>().ToList());
PopulatePanel(doorPanel, doorPrefab, LevelLoader.Instance.Doors.Cast<IDescribable>().ToList(),LevelLoader.Instance.GlobalModifier == "HIDE");
PopulatePanel(guardPanel, guardPrefab, LevelLoader.Instance.Guards.Cast<IDescribable>().ToList(), false);
}
private void PopulatePanel(Transform panel, GameObject template, List<IDescribable> items)
private void PopulatePanel(Transform panel, GameObject template, List<IDescribable> items, bool hide)
{
foreach (Transform child in panel)
{
@@ -43,8 +43,17 @@ public class StatusManager : Singleton<StatusManager>
var titleMesh = obj.transform.FindChildRecursive("TITLE").GetComponent<TextMeshProUGUI>();
var descMesh = obj.transform.FindChildRecursive("DESC").GetComponent<TextMeshProUGUI>();
titleMesh.text = item.GetName();
descMesh.text = item.GetDescription();
if (hide)
{
titleMesh.text = "???";
descMesh.text = "???";
}
else
{
titleMesh.text = item.GetName();
descMesh.text = item.GetDescription();
}
}
}