using System.Collections.Generic; using UnityEngine; namespace CreatGame.UI { public class UIManager : Singleton { private Dictionary m_UILayers; private Dictionary> m_Windows; /// /// /// public UIManager() { m_UILayers = new Dictionary(); m_Windows = new Dictionary>(); } /// /// /// /// /// /// public UIViewBase OpenView(UILayer layer) where T : UIViewBase , new() { var view = new T(); view.InitView(); return view; } } }