Example #1
0
        public void SetLayer(BaseUI baseUI)
        {
            baseUI.CachedTransform.SetParent(_dicLayer[baseUI.mUILayertype].transform, false);

            UIPanel[] panels = baseUI.GetComponentsInChildren <UIPanel>(true);
            foreach (UIPanel panel in panels)
            {
                panel.depth += (int)baseUI.mUILayertype;
            }
        }