Exemplo n.º 1
0
 /// <summary>
 /// 初始化,初始化各列表,并获取各种类型窗口UI的根引用
 /// </summary>
 public void Init()
 {
     CtrlManager.Init();
     this.mDicAllWindows  = new Dictionary <string, TUIWindow>();
     this.mDicOpenWindows = new Dictionary <string, TUIWindow>();
     this.mSepReturnWins  = new Stack <ReturnWinSeqData>();
     if (this.mBgRoot == null)
     {
         this.mBgRoot      = NGUITools.AddChild(ViewTree.home.transform.parent.gameObject).transform;
         this.mBgRoot.name = "BackgroundRoot";
     }
     if (this.mNormalRoot == null)
     {
         this.mNormalRoot      = NGUITools.AddChild(ViewTree.home.transform.parent.gameObject).transform;
         this.mNormalRoot.name = "NormalRoot";
     }
     if (this.mFixedRoot == null)
     {
         this.mFixedRoot      = NGUITools.AddChild(ViewTree.home.transform.parent.gameObject).transform;
         this.mFixedRoot.name = "FixedRoot";
     }
     if (this.mPopupRoot == null)
     {
         this.mPopupRoot      = NGUITools.AddChild(ViewTree.home.transform.parent.gameObject).transform;
         this.mPopupRoot.name = "PopupRoot";
     }
     if (this.mHintRoot == null)
     {
         this.mHintRoot      = NGUITools.AddChild(ViewTree.home.transform.parent.gameObject).transform;
         this.mHintRoot.name = "HintRoot";
     }
     if (this.mTopRoot == null)
     {
         this.mTopRoot      = NGUITools.AddChild(ViewTree.home.transform.parent.gameObject).transform;
         this.mTopRoot.name = "TopRoot";
     }
 }