public void InitUIXML() { ConfigItemData configItemData = new ConfigItemData(); configItemData.m_configItemData.m_ConfigItemList = m_creatConfigItems.m_ConfigItemsList; XMLManager.CreatSerializerXML <ConfigItemData>("PanelUIBase.xml", configItemData); }
//Do the same for finding and removing from toApplyList, and recipes public void AddItemDataAsConfigRecord(GameObject go) { ConfigItemData newData = new ConfigItemData(); newData.ReadConfigDataFromItem(go); itemConfigs.RemoveAll(ic => ic.ItemPrefab == go.name); itemConfigs.Add(newData); }