Start on building out final scene

This commit is contained in:
WillJeynes
2026-08-27 15:20:34 +01:00
parent 445da82e5a
commit 48ad5bab98
16 changed files with 9187 additions and 37 deletions
+2 -2
View File
@@ -17,11 +17,11 @@ public class DoorManager : MonoBehaviour, IDescribable
{
if (mod == "BLUE")
{
this.GetComponent<Renderer>().material = blueMaterial;
this.GetComponentInChildren<Renderer>().material = blueMaterial;
}
else if (mod == "RED")
{
this.GetComponent<Renderer>().material = redMaterial;
this.GetComponentInChildren<Renderer>().material = redMaterial;
}
}
+5 -1
View File
@@ -14,7 +14,11 @@ public class PauseController : MonoBehaviour
public void GoBackToMenu(int intended)
{
TogglePause(false);
GlobalStateManager.Instance.MenuIntended = intended;
if (GlobalStateManager.Instance != null)
{
GlobalStateManager.Instance.MenuIntended = intended;
}
SceneManager.LoadScene(0);
}
+1 -1
View File
@@ -63,7 +63,7 @@ public class StatusManager : Singleton<StatusManager>
public void TogglePanel(RectTransform panel)
{
if (!panelStates.ContainsKey(panel))
panelStates[panel] = true; // Initially open
panelStates[panel] = false; // Initially closed
bool isOpen = panelStates[panel];