Start on building out final scene
This commit is contained in:
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
@@ -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];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user