summaryrefslogtreecommitdiff
path: root/SurvivalTest/Assets/Scripts/UI/UIManager_Panels.cs
diff options
context:
space:
mode:
Diffstat (limited to 'SurvivalTest/Assets/Scripts/UI/UIManager_Panels.cs')
-rw-r--r--SurvivalTest/Assets/Scripts/UI/UIManager_Panels.cs14
1 files changed, 14 insertions, 0 deletions
diff --git a/SurvivalTest/Assets/Scripts/UI/UIManager_Panels.cs b/SurvivalTest/Assets/Scripts/UI/UIManager_Panels.cs
index bb48afd..79305fa 100644
--- a/SurvivalTest/Assets/Scripts/UI/UIManager_Panels.cs
+++ b/SurvivalTest/Assets/Scripts/UI/UIManager_Panels.cs
@@ -63,4 +63,18 @@ public partial class UIManager : Singleton<UIManager>
return panel;
}
+ public PanelBase GetPanel(PanelType type)
+ {
+ if(m_OpenedPanels.ContainsKey(type))
+ {
+ return m_OpenedPanels[type];
+ }
+ return null;
+ }
+
+ public bool IsPanelOpen(PanelType type)
+ {
+ return m_OpenedPanels.ContainsKey(type);
+ }
+
} \ No newline at end of file