summaryrefslogtreecommitdiff
path: root/SurvivalTest/Assets/Scripts/UI/UIManager_Panels.cs
blob: 049f733d09b92846337058ea9307cfb832fd13f3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public enum PanelType
{
	None, 

	PanelLevelBar, 
	PanelItemBar,
}

public partial class UIManager : Singleton<UIManager>
{
	private Dictionary<PanelType, string> m_Panels = new Dictionary<PanelType, string>();

	void SetPanels()
	{
		AddPanel(PanelType.PanelLevelBar, "PanelLevelBar");
		AddPanel(PanelType.PanelItemBar, "PanelItemBar");
	}

	void AddPanel(PanelType type, string path)
	{
		m_Panels.Add(type, "prefabs/ui/" + path);
	}

	void OpenPanel(PanelType type, object param)
	{

	}

}