Example #1
0
        private void MoveOutGroup(Transform parent, UiItem focus)
        {
            int numChildren = parent.childCount;

            for (int i = 0; i < numChildren; i++)
            {
                UiItem item = parent.GetChild(i).gameObject.GetComponent <UiItem>();
                if (item != null)
                {
                    item.MoveOut(focus);
                }
                else
                {
                    Debug.LogError("UiManager try to MoveOutkGroup a parent that has non-UiItem child");
                }
            }
        }