Exemple #1
0
        public static T Open <T>() where T : UIWindow
        {
            string prefab       = GetPrefab(typeof(T));
            var    ui_window_go = Assets.New(prefab, UI.root.transform);
            var    window       = ui_window_go.AddComponentOnce <T>();

            if (window != null)
            {
                windows.Add(window);
            }

            return(window as T);
        }
Exemple #2
0
 public static void Init()
 {
     Init(Assets.New("ui/ui_root"));
 }