デバッグの素材リセット修正

This commit is contained in:
kimura 2021-10-07 16:15:37 +09:00
parent ddc63f94ee
commit aa1b4d6a69
1 changed files with 2 additions and 6 deletions

View File

@ -56,13 +56,9 @@ public class DebugOptionManager : MonoBehaviour
resetMaterialButton.OnClickAsObservable().Subscribe(_ =>
{
// 所持素材
gameData.Material = new List<MaterialData>{new MaterialData{Id = 2}};
foreach (var material in gameData.Material)
{
material.Amount = 5;
}
gameData.Material = new List<MaterialData>{new MaterialData{Id = 2, Amount = 5}};
// レシピ
gameData.MyRecipes = new[] {1, 2, 13};
gameData.MyRecipes = new[] {Const.DefaultRecipeId};
// フライパン
gameData.Pans = new[] {Const.DefaultPanId};
}).AddTo(this);