タンク開放価格変更
This commit is contained in:
parent
2c9482743c
commit
cfc87c43b5
|
|
@ -18,6 +18,19 @@ public class ProductManagement : MonoBehaviour
|
||||||
[SerializeField] private GameObject tastingDisabledObject;
|
[SerializeField] private GameObject tastingDisabledObject;
|
||||||
[SerializeField] private ProductManagementView view;
|
[SerializeField] private ProductManagementView view;
|
||||||
private readonly ReactiveProperty<ManagementState> state = new ReactiveProperty<ManagementState>();
|
private readonly ReactiveProperty<ManagementState> state = new ReactiveProperty<ManagementState>();
|
||||||
|
|
||||||
|
// tank price list
|
||||||
|
private static readonly List<int> PriceList = new List<int>
|
||||||
|
{
|
||||||
|
0,
|
||||||
|
500,
|
||||||
|
1000,
|
||||||
|
2000,
|
||||||
|
3000,
|
||||||
|
4000,
|
||||||
|
5000
|
||||||
|
};
|
||||||
|
|
||||||
private void Start()
|
private void Start()
|
||||||
{
|
{
|
||||||
state.AddTo(this);
|
state.AddTo(this);
|
||||||
|
|
@ -37,24 +50,12 @@ public class ProductManagement : MonoBehaviour
|
||||||
|
|
||||||
// 補充方法設定
|
// 補充方法設定
|
||||||
view.SetRefillType(gameData.RefillMode);
|
view.SetRefillType(gameData.RefillMode);
|
||||||
|
|
||||||
// tank price list
|
|
||||||
var priceList = new List<int>
|
|
||||||
{
|
|
||||||
0,
|
|
||||||
300,
|
|
||||||
500,
|
|
||||||
1000,
|
|
||||||
1500,
|
|
||||||
2000,
|
|
||||||
2500,
|
|
||||||
};
|
|
||||||
|
|
||||||
// タンク並び替え
|
// タンク並び替え
|
||||||
gameData.StorageTanks = gameData.StorageTanks.OrderBy(tank => tank.IsEmpty).ToList();
|
gameData.StorageTanks = gameData.StorageTanks.OrderBy(tank => tank.IsEmpty).ToList();
|
||||||
|
|
||||||
// タンク設定
|
// タンク設定
|
||||||
var tankList = view.SetTanks(priceList);
|
var tankList = view.SetTanks(PriceList);
|
||||||
var rarityDataList = SpreadsheetDataManager.Instance.GetBaseDataList<RarityData>(Const.RarityDataSheet);
|
var rarityDataList = SpreadsheetDataManager.Instance.GetBaseDataList<RarityData>(Const.RarityDataSheet);
|
||||||
var productList = SpreadsheetDataManager.Instance.GetBaseDataList<ProductData>(Const.ProductDataSheet);
|
var productList = SpreadsheetDataManager.Instance.GetBaseDataList<ProductData>(Const.ProductDataSheet);
|
||||||
foreach (var tankView in tankList)
|
foreach (var tankView in tankList)
|
||||||
|
|
@ -76,7 +77,7 @@ public class ProductManagement : MonoBehaviour
|
||||||
{
|
{
|
||||||
nameId = 0,
|
nameId = 0,
|
||||||
name = "タンク",
|
name = "タンク",
|
||||||
price = priceList[tankView.TankNumber - 1],
|
price = PriceList[tankView.TankNumber - 1],
|
||||||
text = "ポップコーンを保存する容器",
|
text = "ポップコーンを保存する容器",
|
||||||
category = 3,
|
category = 3,
|
||||||
consumeType = 2,
|
consumeType = 2,
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue