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()); } }
//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); }