確認用

This commit is contained in:
kimura 2021-08-11 11:20:05 +09:00
parent bcf1320e4b
commit b3cf8e9d75
1 changed files with 7 additions and 1 deletions

View File

@ -16,7 +16,13 @@ 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();
@ -43,7 +49,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);
} }