都市の店舗レベル設定修正

This commit is contained in:
kimura 2022-12-02 20:15:25 +09:00
parent 4eb2eb46f7
commit f96c59fc2f
1 changed files with 5 additions and 4 deletions

View File

@ -256,6 +256,7 @@ public class DebugOptionManager : MonoBehaviour
}).AddTo(this);
// 最新の都市のハート数調整
latestCityHeartCount.enabled = GameDataUtils.CheckLatestCity(GameDataManager.GameData.CurrentCityId);
latestCityHeartCount.text = $"{GameDataManager.GetCityGameData(GameDataUtils.GetLatestCityId()).Heart}";
latestCityHeartCount.OnValueChangedAsObservable().Subscribe(x =>
{
@ -305,10 +306,10 @@ public class DebugOptionManager : MonoBehaviour
.Subscribe(x =>
{
var shopLevelData = shopLevelList.First(data => data.shopLevel == x + 1);
globalGameData.ViewedShopLevel = shopLevelData.shopLevel;
globalGameData.Heart = shopLevelData.heart;
globalGameData.MyRecipes = GetMyRecipe(shopLevelData.shopLevel);
heartCount.text = $"{globalGameData.Heart}";
cityGameData.ViewedShopLevel = shopLevelData.shopLevel;
cityGameData.Heart = shopLevelData.heart;
if (!GameDataUtils.CheckLatestCity(GameDataManager.GameData.CurrentCityId)) return;
latestCityHeartCount.text = $"{cityGameData.Heart}";
}).AddTo(this);
/*