void AddNewItem(List <BaseItem> selectItems) { for (int i = 0; i < selectItems.Count; i++) { BaseItem item = selectItems[i]; if (item != null) { ItemInfo itemInfo = new ItemInfo(); itemInfo.itemID = item.id; itemInfo.itemName = item.name; itemInfo.itemPos = new List <ItemPosInfo>(); if (itemInfos != null) { UserLog.AddItemSceneLog(m_allAssetName[selectDataIndex], item.id); itemInfos.items.Add(itemInfo); AddSingleItemObj(itemInfo); } } } }