示例#1
0
    private void Start()
    {
        Setup();
        if (price.priceList.Count > 0)
        {
            Debug.Log(price.priceList.Count);
            DataSave <BaseStat> dataList = BacJson.FromJson <BaseStat, ResourceStat, ItemStat>(price.priceList[0].json);

            Debug.Log(BacJson.ToJson <BaseStat>(dataList));
            SlotListManager.SetupSlotList(dataList.results.ToArray());
        }
    }
示例#2
0
    //public DataSave<BaseStat> dataList;
    public void LoadPrice(List <Dictionary <string, string> > dataCSV)
    {
        priceList = new List <PriceData>();
        for (int i = 0; i < dataCSV.Count; i++)
        {
            PriceData _data = new PriceData(dataCSV[i]);
            priceList.Add(_data);
        }
        DataSave <BaseStat> dataList = BacJson.FromJson <BaseStat, ResourceStat, ItemStat>(priceList[0].json);
        string _json = BacJson.ToJson <BaseStat>(dataList);

        Debug.Log(_json);
    }