Example #1
0
        /// <summary>
        /// 获取UI最大层级
        /// </summary>
        /// <returns></returns>
        public int GetMaxZOrder()
        {
            List <int> list = new List <int>();
            UIPanel    Panel;

            foreach (KeyValuePair <string, GameObject> index in getuiid)
            {
                Panel = index.Value.GetComponent <UIPanel>();
                list.Add(Panel.depth);
            }
            return(CG_Windows.GetMax(list));
        }