Merge branch 'develop' of bitbucket.org:usaya/popcorn into develop
This commit is contained in:
commit
1cb3a93553
|
|
@ -0,0 +1,17 @@
|
||||||
|
using System.Collections.Generic;
|
||||||
|
|
||||||
|
public class PlantLineData
|
||||||
|
{
|
||||||
|
public PlantLineType Type;
|
||||||
|
public CornFieldRank Level;
|
||||||
|
|
||||||
|
public PlantLineData()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public PlantLineData(PlantLineType type, CornFieldRank level)
|
||||||
|
{
|
||||||
|
Type = type;
|
||||||
|
Level = level;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: ccbcd3d73ff04c7c98bbf0968da4055b
|
||||||
|
timeCreated: 1628655852
|
||||||
|
|
@ -0,0 +1,16 @@
|
||||||
|
public class MaterialData
|
||||||
|
{
|
||||||
|
public int Id;
|
||||||
|
public int Amount;
|
||||||
|
|
||||||
|
public MaterialData()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
public MaterialData(int id, int amount)
|
||||||
|
{
|
||||||
|
Id = id;
|
||||||
|
Amount = amount;
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
@ -0,0 +1,3 @@
|
||||||
|
fileFormatVersion: 2
|
||||||
|
guid: 9a9e37e2d4534ddf8f3722d5e93291e5
|
||||||
|
timeCreated: 1628656502
|
||||||
|
|
@ -16,13 +16,7 @@ public class Market : MonoBehaviour
|
||||||
var gameData = GameDataManager.GameData;
|
var gameData = GameDataManager.GameData;
|
||||||
CoinManager.Instance.ChangeCoin(gameData.coin);
|
CoinManager.Instance.ChangeCoin(gameData.coin);
|
||||||
// 在庫数表示
|
// 在庫数表示
|
||||||
var tmpTanks = new List<StorageTank>(gameData.StorageTanks);
|
|
||||||
gameData.StorageTanks = new List<StorageTank>
|
|
||||||
{
|
|
||||||
new StorageTank {Capacity = 5, Stock = UnityEngine.Random.Range(0, 6)}
|
|
||||||
};
|
|
||||||
stockView.SetStock(gameData.StorageTanks);
|
stockView.SetStock(gameData.StorageTanks);
|
||||||
gameData.StorageTanks = tmpTanks;
|
|
||||||
|
|
||||||
// 全レシピ
|
// 全レシピ
|
||||||
var allRecipe = RecipeData.GetAllRecipe();
|
var allRecipe = RecipeData.GetAllRecipe();
|
||||||
|
|
@ -49,7 +43,7 @@ public class Market : MonoBehaviour
|
||||||
GameDataManager.SaveGameData();
|
GameDataManager.SaveGameData();
|
||||||
// 自動補充 refill
|
// 自動補充 refill
|
||||||
RefillProduct();
|
RefillProduct();
|
||||||
// stockView.SetStock(gameData.StorageTanks);
|
stockView.SetStock(gameData.StorageTanks);
|
||||||
StockFlavorLog();
|
StockFlavorLog();
|
||||||
}).AddTo(this);
|
}).AddTo(this);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue