//ne pas oublier d'assigner les sellers data au SetUp public void SaveShopParameters(ShopWithShopParameters parameters) { SellersData sellersData = PlayerDataSaver.LoadShopDatas(); if (sellersData != null) { sellersData.SetSellersData(parameters); PlayerDataSaver.SaveSellersDatas(sellersData); } else { SaveAllShopsDatas(); } }
public void SaveAllShopsDatas() { PlayerDataSaver.SaveSellersDatas(allShopsWithParameters); }