示例#1
0
    public void EndandSave()
    {
        purchasedItemNames.Clear();
        foreach (ShopItemData itemData in purchasedItemsData)
        {
            purchasedItemNames.Add(itemData.englishName.ToString());
        }
        playerDataController.UpdatePurchasedShopItem(purchasedItemNames);

        displayedItemNames.Clear();
        foreach (ShopItemData itemData in displayedItemsData)
        {
            displayedItemNames.Add(itemData.englishName.ToString());
        }
        playerDataController.UpdateDisplayedShopItem(displayedItemNames);
    }