Beispiel #1
0
        /// <summary>
        /// Set the mini depth to target with given Sorted list
        /// </summary>
        public static void SetTargetMinPanelDepth(GameObject obj, int depth)
        {
            List <UIPanel> lsPanels = GameUtility.GetPanelSorted(obj, true);

            if (lsPanels != null)
            {
                int i = 0;
                while (i < lsPanels.Count)
                {
                    lsPanels[i].depth = depth + i;
                    i++;
                }
            }
        }