From 7d6f00927ce6f94261e168c456c2c48228e36825 Mon Sep 17 00:00:00 2001 From: kimura Date: Mon, 13 Sep 2021 11:19:06 +0900 Subject: [PATCH] =?UTF-8?q?=E7=B4=A0=E6=9D=90=E3=83=AA=E3=82=BB=E3=83=83?= =?UTF-8?q?=E3=83=88=E3=81=AB=E3=83=AC=E3=82=B7=E3=83=94=E3=81=A8=E3=83=95?= =?UTF-8?q?=E3=83=A9=E3=82=A4=E3=83=91=E3=83=B3=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Assets/MyGame/Scenes/DebugOption/DebugOption.unity | 2 +- .../Scenes/DebugOption/Scripts/DebugOptionManager.cs | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/popcorn/Assets/MyGame/Scenes/DebugOption/DebugOption.unity b/popcorn/Assets/MyGame/Scenes/DebugOption/DebugOption.unity index 7c402c11..ed2e7c65 100644 --- a/popcorn/Assets/MyGame/Scenes/DebugOption/DebugOption.unity +++ b/popcorn/Assets/MyGame/Scenes/DebugOption/DebugOption.unity @@ -1548,7 +1548,7 @@ MonoBehaviour: resetButton: {fileID: 785180941} backButton: {fileID: 785180940} resetFieldButton: {fileID: 450754452} - refillMaterialButton: {fileID: 1767352104} + resetMaterialButton: {fileID: 1767352104} refillManyProductButton: {fileID: 1651104560} refillLittleProductButton: {fileID: 153639484} fastGrowingToggle: {fileID: 1998240841} diff --git a/popcorn/Assets/MyGame/Scenes/DebugOption/Scripts/DebugOptionManager.cs b/popcorn/Assets/MyGame/Scenes/DebugOption/Scripts/DebugOptionManager.cs index 6cc4ce43..23c6f422 100644 --- a/popcorn/Assets/MyGame/Scenes/DebugOption/Scripts/DebugOptionManager.cs +++ b/popcorn/Assets/MyGame/Scenes/DebugOption/Scripts/DebugOptionManager.cs @@ -13,7 +13,7 @@ public class DebugOptionManager : MonoBehaviour [SerializeField] private Button resetButton; [SerializeField] private Button backButton; [SerializeField] private Button resetFieldButton; - [SerializeField] private Button refillMaterialButton; + [SerializeField] private Button resetMaterialButton; [SerializeField] private Button refillManyProductButton; [SerializeField] private Button refillLittleProductButton; [SerializeField] private Toggle fastGrowingToggle; @@ -46,7 +46,7 @@ public class DebugOptionManager : MonoBehaviour gameData.SeedlingDataList = null; }).AddTo(this); - refillMaterialButton.OnClickAsObservable().Subscribe(_ => + resetMaterialButton.OnClickAsObservable().Subscribe(_ => { // 所持素材 gameData.Material = new List{new MaterialData{Id = 2}}; @@ -54,6 +54,10 @@ public class DebugOptionManager : MonoBehaviour { material.Amount = 5; } + // レシピ + gameData.MyRecipes = new[] {1, 2, 13}; + // フライパン + gameData.Pans = new[] {Const.DefaultPanId}; }).AddTo(this); refillManyProductButton.OnClickAsObservable().Subscribe(_ =>