예제 #1
0
        private void initView(Transform go)
        {
            foreach (Transform t in go)
            {
                if (!_controlList.ContainsKey(t.name))
                {
                    _controlList.Add(t.name, t);
                }
                else
                {
                    DebugManager.LogWarning("添加重复控件:" + t.name);
                }

                if (t.childCount > 0)
                {
                    initView(t);
                }
            }
        }