From cfc87c43b59632da6ce3aa8661fe0067ff9a654c Mon Sep 17 00:00:00 2001 From: kimura Date: Thu, 11 Nov 2021 19:00:41 +0900 Subject: [PATCH] =?UTF-8?q?=E3=82=BF=E3=83=B3=E3=82=AF=E9=96=8B=E6=94=BE?= =?UTF-8?q?=E4=BE=A1=E6=A0=BC=E5=A4=89=E6=9B=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../marketing/Scripts/ProductManagement.cs | 29 ++++++++++--------- 1 file changed, 15 insertions(+), 14 deletions(-) diff --git a/popcorn/Assets/MyGame/Scenes/marketing/Scripts/ProductManagement.cs b/popcorn/Assets/MyGame/Scenes/marketing/Scripts/ProductManagement.cs index 0246b5de..7462aed9 100644 --- a/popcorn/Assets/MyGame/Scenes/marketing/Scripts/ProductManagement.cs +++ b/popcorn/Assets/MyGame/Scenes/marketing/Scripts/ProductManagement.cs @@ -18,6 +18,19 @@ public class ProductManagement : MonoBehaviour [SerializeField] private GameObject tastingDisabledObject; [SerializeField] private ProductManagementView view; private readonly ReactiveProperty state = new ReactiveProperty(); + + // tank price list + private static readonly List PriceList = new List + { + 0, + 500, + 1000, + 2000, + 3000, + 4000, + 5000 + }; + private void Start() { state.AddTo(this); @@ -37,24 +50,12 @@ public class ProductManagement : MonoBehaviour // 補充方法設定 view.SetRefillType(gameData.RefillMode); - - // tank price list - var priceList = new List - { - 0, - 300, - 500, - 1000, - 1500, - 2000, - 2500, - }; // タンク並び替え gameData.StorageTanks = gameData.StorageTanks.OrderBy(tank => tank.IsEmpty).ToList(); // タンク設定 - var tankList = view.SetTanks(priceList); + var tankList = view.SetTanks(PriceList); var rarityDataList = SpreadsheetDataManager.Instance.GetBaseDataList(Const.RarityDataSheet); var productList = SpreadsheetDataManager.Instance.GetBaseDataList(Const.ProductDataSheet); foreach (var tankView in tankList) @@ -76,7 +77,7 @@ public class ProductManagement : MonoBehaviour { nameId = 0, name = "タンク", - price = priceList[tankView.TankNumber - 1], + price = PriceList[tankView.TankNumber - 1], text = "ポップコーンを保存する容器", category = 3, consumeType = 2,