Exemplo n.º 1
0
    public void InitUIXML()
    {
        ConfigItemData configItemData = new ConfigItemData();

        configItemData.m_configItemData.m_ConfigItemList = m_creatConfigItems.m_ConfigItemsList;

        XMLManager.CreatSerializerXML <ConfigItemData>("PanelUIBase.xml", configItemData);
    }
Exemplo n.º 2
0
        //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);
        }