店頭在庫数定数化

This commit is contained in:
kimura 2021-08-10 11:32:30 +09:00
parent d5726b1eb6
commit de70e03ae4
2 changed files with 2 additions and 1 deletions

View File

@ -6,6 +6,7 @@ using UnityEngine;
public class Market : MonoBehaviour public class Market : MonoBehaviour
{ {
public static readonly int ShopStockCount = 21;
// Start is called before the first frame update // Start is called before the first frame update
void Start() void Start()
{ {

View File

@ -137,7 +137,7 @@ public class RecipeDetailView : MonoBehaviour
// 店頭の空きがない // 店頭の空きがない
// 店頭の空きに追加 // 店頭の空きに追加
if (21 >= gameData.ShopStock.Count + data.Volume) if (Market.ShopStockCount >= gameData.ShopStock.Count + data.Volume)
{ {
return true; return true;
} }