コード例 #1
0
        public static GameDollDetailItemButton Create(Transform parent, string categoryName, int index)
        {
            GameDollDetailItemButton button = CocoLoad.Instantiate <GameDollDetailItemButton> ("prefabs/Dressup_Detail", parent);

            button.InitInfo(categoryName, index);
            return(button);
        }
コード例 #2
0
        void InitDetailCategoryItems(string categoryID)
        {
//			m_ItemScroll.GridGroup.SetInfo (data.m_ItemGridInfo);

//			List<CocoRoleDressItemHolder> itemDataList = m_CategoryItemDic [data.CategoryID];
//			itemDataList = GetItemList (itemDataList, data.CategoryID);

            m_ButtonList.Clear();

//			if (itemDataList != null) {
            for (int i = 0; i < 6; i++)
            {
                GameDollDetailItemButton button = GameDollDetailItemButton.Create(m_ItemScroll.GridGroup.transform, categoryID, i);
                m_ButtonList.Add(button.gameObject);
            }
//			}

            m_ItemScroll.InitSize();
            m_ItemScroll.SetGridEnable(true);
        }