Add tutorial system. Fox bugs raised by the group chat

This commit is contained in:
WillJeynes
2026-08-29 19:51:34 +01:00
parent 44c59c425c
commit fec7b392b5
23 changed files with 1075 additions and 124 deletions
+3 -1
View File
@@ -29,7 +29,7 @@ public class StatusManager : Singleton<StatusManager>
public void PopulatePanels()
{
PopulatePanel(doorPanel, doorPrefab, LevelLoader.Instance.Doors.Cast<IDescribable>().ToList().Shuffle(),false, LevelLoader.Instance.GlobalModifier == "HIDE");
PopulatePanel(guardPanel, guardPrefab, LevelLoader.Instance.Guards.Cast<IDescribable>().ToList().Shuffle(), false, false);
PopulatePanel(guardPanel, doorPrefab, LevelLoader.Instance.Guards.Cast<IDescribable>().ToList().Shuffle(), false, false);
PopulatePanel(doorPanelThoughts, doorPrefab, LevelLoader.Instance.Doors.Cast<IDescribable>().ToList(),true, LevelLoader.Instance.GlobalModifier == "HIDE");
PopulatePanel(guardPanelThoughts, guardPrefab, LevelLoader.Instance.Guards.Cast<IDescribable>().ToList(), true, false);
@@ -85,6 +85,8 @@ public class StatusManager : Singleton<StatusManager>
public void TogglePanel(RectTransform panel)
{
TutorialManager.Instance.LogAction("SIDE");
if (!panelStates.ContainsKey(panel))
panelStates[panel] = false; // Initially closed