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(_ =>