From aa1b4d6a691973e88e7eb668412b9d189cc7c63e Mon Sep 17 00:00:00 2001 From: kimura Date: Thu, 7 Oct 2021 16:15:37 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=87=E3=83=90=E3=83=83=E3=82=B0=E3=81=AE?= =?UTF-8?q?=E7=B4=A0=E6=9D=90=E3=83=AA=E3=82=BB=E3=83=83=E3=83=88=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Scenes/DebugOption/Scripts/DebugOptionManager.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/popcorn/Assets/MyGame/Scenes/DebugOption/Scripts/DebugOptionManager.cs b/popcorn/Assets/MyGame/Scenes/DebugOption/Scripts/DebugOptionManager.cs index ac63975b..c5482e48 100644 --- a/popcorn/Assets/MyGame/Scenes/DebugOption/Scripts/DebugOptionManager.cs +++ b/popcorn/Assets/MyGame/Scenes/DebugOption/Scripts/DebugOptionManager.cs @@ -56,13 +56,9 @@ public class DebugOptionManager : MonoBehaviour resetMaterialButton.OnClickAsObservable().Subscribe(_ => { // 所持素材 - gameData.Material = new List{new MaterialData{Id = 2}}; - foreach (var material in gameData.Material) - { - material.Amount = 5; - } + gameData.Material = new List{new MaterialData{Id = 2, Amount = 5}}; // レシピ - gameData.MyRecipes = new[] {1, 2, 13}; + gameData.MyRecipes = new[] {Const.DefaultRecipeId}; // フライパン gameData.Pans = new[] {Const.DefaultPanId}; }).AddTo(this);