From 9726536df0e9330b7513f19511887baf57e3eb5d Mon Sep 17 00:00:00 2001 From: kimura Date: Mon, 15 Nov 2021 14:50:04 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=B7=E3=83=BC=E3=83=88=E3=83=87=E3=83=BC?= =?UTF-8?q?=E3=82=BF=E3=81=AB=E5=AF=BE=E5=BF=9C=E3=81=97=E3=81=A6=E3=83=AC?= =?UTF-8?q?=E3=82=B7=E3=83=94=E3=81=AE=E9=9D=9E=E8=A1=A8=E7=A4=BA=E3=82=92?= =?UTF-8?q?=E5=88=87=E3=82=8A=E6=9B=BF=E3=81=88=E3=82=89=E3=82=8C=E3=82=8B?= =?UTF-8?q?=E3=82=88=E3=81=86=E3=81=AB=E3=81=97=E3=81=9F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MyGame/Scenes/recipe/Scripts/RecipeSelectDialog.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/popcorn/Assets/MyGame/Scenes/recipe/Scripts/RecipeSelectDialog.cs b/popcorn/Assets/MyGame/Scenes/recipe/Scripts/RecipeSelectDialog.cs index 171531ba..68b5cc63 100644 --- a/popcorn/Assets/MyGame/Scenes/recipe/Scripts/RecipeSelectDialog.cs +++ b/popcorn/Assets/MyGame/Scenes/recipe/Scripts/RecipeSelectDialog.cs @@ -35,8 +35,12 @@ public class RecipeSelectDialog : MonoBehaviour // レシピ一覧生成 var content = scrollRect.content; content.transform.DestroyAllChildrens(); - var data = SpreadsheetDataManager.Instance.GetBaseDataList(Const.ProductDataSheet); - foreach (var productData in data) + var productDataList = SpreadsheetDataManager.Instance.GetBaseDataList(Const.ProductDataSheet); + var shopData = SpreadsheetDataManager.Instance.GetBaseDataList(Const.ShopDataSheet); + var shopRecipes = shopData.Where(data => data.Category == ItemCategory.Recipe).Select(data => data.itemId); + var targetList = productDataList.Where(data => data.shopLevel != Const.SpecialShopLevel || shopRecipes.Contains(data.id)).ToList(); + + foreach (var productData in targetList) { var view = Instantiate(recipePrefab, content.transform); view.SetRecipe(productData);