Esempio n. 1
0
 private void loadGameShopList()
 {
     m_ShopItemList = JsonLoader.LoadJsonInResource <List <ShopItem> >("Json/shopItem");
     // foreach (var item in m_ShopItemList)
     // {
     //     if (item.prefabPath == null || item.prefabPath == "")
     //     {
     //         m_ShopItemList.Remove(item);
     //     }
     // }
     Debug.Log("Load avaliable shop item, count: " + m_ShopItemList.Count);
 }