Beispiel #1
0
 private IUISubWnd GetSubWnd(ELevel1_SubWnd wndType)
 {
     foreach (IUISubWnd wnd in m_SubWndList)
     {
         if (wnd.GetWndType() == (int)wndType)
         {
             return(wnd);
         }
     }
     return(null);
 }
Beispiel #2
0
 public void InitSubView(ELevel1_SubWnd _eSubWnd, RectTransform _rtParent, bool _bVisible)
 {
     GetSubWnd(_eSubWnd).SetContainer(_rtParent);
     GetSubWnd(_eSubWnd).LoadView();
     GetSubWnd(_eSubWnd).SetVisible(_bVisible);
 }