Esempio n. 1
0
    /// <summary>
    /// 初始化实体数据集合.
    /// </summary>
    public void InitStoreItemList()
    {
        //xml文件路径.
        string xmlPath = "Assets/Datas/StoreData.xml";

        //读取XML中的信息到集合中.
        XMLTool.ReadXMLByPath(xmlPath, storeItemList);

        for (int i = 0; i < storeItemList.Count; i++)
        {
            string str = storeItemList[i].ToString();
            Debug.Log(str);
        }
    }