using System.Collections; using System.Collections.Generic; using UnityEngine; public enum PanelType { None, PanelLevelBar, PanelItemBar, } public partial class UIManager : Singleton { private Dictionary m_Panels = new Dictionary(); 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) { } }