From 4b4a1490c838d591af6dde5d0545b59630a29efe Mon Sep 17 00:00:00 2001 From: kimura Date: Thu, 4 Nov 2021 17:21:49 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=87=E3=83=90=E3=83=83=E3=82=B0=E3=81=A7?= =?UTF-8?q?=E3=81=AE=E3=82=BF=E3=83=B3=E3=82=AF=E8=A3=9C=E5=85=85=E3=82=92?= =?UTF-8?q?=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DebugOption/Scripts/DebugOptionManager.cs | 50 +++++++++---------- 1 file changed, 24 insertions(+), 26 deletions(-) diff --git a/popcorn/Assets/MyGame/Scenes/DebugOption/Scripts/DebugOptionManager.cs b/popcorn/Assets/MyGame/Scenes/DebugOption/Scripts/DebugOptionManager.cs index 68645da2..03bf27d0 100644 --- a/popcorn/Assets/MyGame/Scenes/DebugOption/Scripts/DebugOptionManager.cs +++ b/popcorn/Assets/MyGame/Scenes/DebugOption/Scripts/DebugOptionManager.cs @@ -84,38 +84,36 @@ public class DebugOptionManager : MonoBehaviour refillManyProductButton.OnClickAsObservable().Subscribe(_ => { - gameData.StorageTanks.Clear(); - gameData.StorageTanks.Add(new StorageTank(){Capacity = 50}); - gameData.StorageTanks.Add(new StorageTank(){Capacity = 50}); - gameData.StorageTanks.Add(new StorageTank(){Capacity = 50}); - gameData.StorageTanks.Add(new StorageTank() + // gameData.StorageTanks.Clear(); + // CookingResult.AddStock(new ProductData(){volume = 5, id = 1}, ProductRarity.Normal); + // CookingResult.AddStock(new ProductData(){volume = 5, id = 1}, ProductRarity.Yellow); + // CookingResult.AddStock(new ProductData(){volume = 5, id = 1}, ProductRarity.Copper); + // CookingResult.AddStock(new ProductData(){volume = 5, id = 1}, ProductRarity.Silver); + // CookingResult.AddStock(new ProductData(){volume = 5, id = 1}, ProductRarity.Gold); + // CookingResult.AddStock(new ProductData(){volume = 5, id = 1}, ProductRarity.Rainbow); + // CookingResult.AddStock(new ProductData(){volume = 20, id = 2}, ProductRarity.Silver); + if (gameData.StorageTanks.Count < 2) { - Capacity = 50, - FlavorId = 5, - Stocks = new List - { - new ProductStockData - { - Rarity = ProductRarity.Gold, - Stock = 17 - } - } - }); - CookingResult.AddStock(new ProductData(){volume = 5, id = 1}, ProductRarity.Normal); - CookingResult.AddStock(new ProductData(){volume = 5, id = 1}, ProductRarity.Yellow); - CookingResult.AddStock(new ProductData(){volume = 5, id = 1}, ProductRarity.Copper); - CookingResult.AddStock(new ProductData(){volume = 5, id = 1}, ProductRarity.Silver); - CookingResult.AddStock(new ProductData(){volume = 5, id = 1}, ProductRarity.Gold); - CookingResult.AddStock(new ProductData(){volume = 5, id = 1}, ProductRarity.Rainbow); - CookingResult.AddStock(new ProductData(){volume = 20, id = 2}, ProductRarity.Silver); - CookingResult.AddStock(new ProductData(){volume = 30, id = 3}, ProductRarity.Gold); + gameData.StorageTanks.Add(new StorageTank(){Capacity = Const.TankCapacity}); + } + var flavor = gameData.StorageTanks[0].FlavorId; + if (flavor == -1) + { + flavor = 1; + } + CookingResult.AddStock(new ProductData(){volume = 5, id = flavor}, ProductRarity.Normal); + CookingResult.AddStock(new ProductData(){volume = 5, id = flavor}, ProductRarity.Yellow); + CookingResult.AddStock(new ProductData(){volume = 5, id = flavor}, ProductRarity.Copper); + CookingResult.AddStock(new ProductData(){volume = 5, id = flavor}, ProductRarity.Silver); + CookingResult.AddStock(new ProductData(){volume = 10, id = 1}, ProductRarity.Copper); + CookingResult.AddStock(new ProductData(){volume = 10, id = 1}, ProductRarity.Silver); }).AddTo(this); refillLittleProductButton.OnClickAsObservable().Subscribe(_ => { gameData.StorageTanks.ForEach(x => x.ClearStock()); - CookingResult.AddStock(new ProductData(){volume = 5, id = 1}, ProductRarity.Yellow); - CookingResult.AddStock(new ProductData(){volume = 5, id = 1}, ProductRarity.Gold); + // CookingResult.AddStock(new ProductData(){volume = 5, id = 1}, ProductRarity.Yellow); + CookingResult.AddStock(new ProductData(){volume = 3, id = 2}, ProductRarity.Copper); }).AddTo(this); bulkOrderResetButton.OnClickAsObservable().Subscribe(_ =>