都市の店舗レベル設定修正
This commit is contained in:
parent
4eb2eb46f7
commit
f96c59fc2f
|
|
@ -256,6 +256,7 @@ public class DebugOptionManager : MonoBehaviour
|
||||||
}).AddTo(this);
|
}).AddTo(this);
|
||||||
|
|
||||||
// 最新の都市のハート数調整
|
// 最新の都市のハート数調整
|
||||||
|
latestCityHeartCount.enabled = GameDataUtils.CheckLatestCity(GameDataManager.GameData.CurrentCityId);
|
||||||
latestCityHeartCount.text = $"{GameDataManager.GetCityGameData(GameDataUtils.GetLatestCityId()).Heart}";
|
latestCityHeartCount.text = $"{GameDataManager.GetCityGameData(GameDataUtils.GetLatestCityId()).Heart}";
|
||||||
latestCityHeartCount.OnValueChangedAsObservable().Subscribe(x =>
|
latestCityHeartCount.OnValueChangedAsObservable().Subscribe(x =>
|
||||||
{
|
{
|
||||||
|
|
@ -305,10 +306,10 @@ public class DebugOptionManager : MonoBehaviour
|
||||||
.Subscribe(x =>
|
.Subscribe(x =>
|
||||||
{
|
{
|
||||||
var shopLevelData = shopLevelList.First(data => data.shopLevel == x + 1);
|
var shopLevelData = shopLevelList.First(data => data.shopLevel == x + 1);
|
||||||
globalGameData.ViewedShopLevel = shopLevelData.shopLevel;
|
cityGameData.ViewedShopLevel = shopLevelData.shopLevel;
|
||||||
globalGameData.Heart = shopLevelData.heart;
|
cityGameData.Heart = shopLevelData.heart;
|
||||||
globalGameData.MyRecipes = GetMyRecipe(shopLevelData.shopLevel);
|
if (!GameDataUtils.CheckLatestCity(GameDataManager.GameData.CurrentCityId)) return;
|
||||||
heartCount.text = $"{globalGameData.Heart}";
|
latestCityHeartCount.text = $"{cityGameData.Heart}";
|
||||||
}).AddTo(this);
|
}).AddTo(this);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue