店頭在庫数定数化
This commit is contained in:
parent
d5726b1eb6
commit
de70e03ae4
|
|
@ -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()
|
||||||
{
|
{
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue