タンクの容量を定数化50->20に変更
This commit is contained in:
parent
6c24cb3986
commit
c5f397fbec
|
|
@ -90,7 +90,7 @@ public class ProductManagement : MonoBehaviour
|
|||
Action<int> purchaseAction = amount =>
|
||||
{
|
||||
// タンク追加
|
||||
gameData.StorageTanks.Add(new StorageTank() {Capacity = 50});
|
||||
gameData.StorageTanks.Add(new StorageTank() {Capacity = Const.TankCapacity});
|
||||
tankView.SetData(gameData.StorageTanks[tankView.TankNumber - 1]);
|
||||
tankView.SetState(TankState.Unlock);
|
||||
CoinManager.Instance.SubCoin(shopData.price);
|
||||
|
|
|
|||
|
|
@ -10,6 +10,7 @@ public static class Const {
|
|||
public static readonly int DefaultMachineLevel = 1;
|
||||
public static readonly int DefaultRecipeId = 1;
|
||||
public static readonly int DefaultPanId = 1;
|
||||
public static readonly int TankCapacity = 20;
|
||||
public static readonly int SpecialShopLevel = 9999;
|
||||
public static readonly int SpecialCategory = 9999;
|
||||
public static readonly int NotSetMaterialId = 0;
|
||||
|
|
|
|||
|
|
@ -311,7 +311,7 @@ public sealed class GameData {
|
|||
{
|
||||
StorageTanks.Add(new StorageTank
|
||||
{
|
||||
Capacity = 50,
|
||||
Capacity = Const.TankCapacity,
|
||||
FlavorId = -1,
|
||||
}
|
||||
);
|
||||
|
|
|
|||
Loading…
Reference in New Issue