private void ClearShowList() { foreach (SupportUI_SupportItemUI obj in m_ShowItemList) { SupportItemUI.CacheInstance(obj); } m_ShowItemList.Clear(); }
//刷新ShowScrollItem private void ShowScrollItem(int itemType) { SupportItemUI.gameObject.SetActive(false); if (!Global.gApp.gGameData.ItemTypeMapData.ContainsKey(itemType)) { return; } for (int i = 0; i < Global.gApp.gGameData.ItemTypeMapData[itemType].Count; i++) { ItemItem itemConfig = Global.gApp.gGameData.ItemTypeMapData[itemType][i]; SupportUI_SupportItemUI itemUI = SupportItemUI.GetInstance(); itemUI.Init(itemConfig); m_ShowItemList.Add(itemUI); } }