From f96c59fc2f94584c53f9ae2d06d2698dcbbcee68 Mon Sep 17 00:00:00 2001 From: kimura Date: Fri, 2 Dec 2022 20:15:25 +0900 Subject: [PATCH] =?UTF-8?q?=E9=83=BD=E5=B8=82=E3=81=AE=E5=BA=97=E8=88=97?= =?UTF-8?q?=E3=83=AC=E3=83=99=E3=83=AB=E8=A8=AD=E5=AE=9A=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Scenes/DebugOption/Scripts/DebugOptionManager.cs | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/popcorn/Assets/MyGame/Scenes/DebugOption/Scripts/DebugOptionManager.cs b/popcorn/Assets/MyGame/Scenes/DebugOption/Scripts/DebugOptionManager.cs index 9f733d37..f8004123 100644 --- a/popcorn/Assets/MyGame/Scenes/DebugOption/Scripts/DebugOptionManager.cs +++ b/popcorn/Assets/MyGame/Scenes/DebugOption/Scripts/DebugOptionManager.cs @@ -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); /*