From e7e34f99fd9ef029cfa5a5457c2308f33c298837 Mon Sep 17 00:00:00 2001 From: kimura Date: Mon, 5 Dec 2022 09:45:20 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=87=E3=83=90=E3=83=83=E3=82=B0=E6=A9=9F?= =?UTF-8?q?=E8=83=BD=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../MyGame/Scenes/DebugOption/Scripts/DebugOptionManager.cs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/popcorn/Assets/MyGame/Scenes/DebugOption/Scripts/DebugOptionManager.cs b/popcorn/Assets/MyGame/Scenes/DebugOption/Scripts/DebugOptionManager.cs index f8004123..83ba854c 100644 --- a/popcorn/Assets/MyGame/Scenes/DebugOption/Scripts/DebugOptionManager.cs +++ b/popcorn/Assets/MyGame/Scenes/DebugOption/Scripts/DebugOptionManager.cs @@ -249,14 +249,15 @@ public class DebugOptionManager : MonoBehaviour globalGameData.Coin = Int32.Parse(x); }).AddTo(this); - heartCount.text = $"{globalGameData.Heart}"; + heartCount.interactable = GameDataUtils.CheckLatestCity(Const.DefaultCityId); + heartCount.text = $"{GameDataUtils.GetTotalHeart()}"; heartCount.OnValueChangedAsObservable().Subscribe(x => { globalGameData.Heart = Int32.Parse(x); }).AddTo(this); // 最新の都市のハート数調整 - latestCityHeartCount.enabled = GameDataUtils.CheckLatestCity(GameDataManager.GameData.CurrentCityId); + latestCityHeartCount.interactable = GameDataUtils.CheckLatestCity(GameDataManager.GameData.CurrentCityId); latestCityHeartCount.text = $"{GameDataManager.GetCityGameData(GameDataUtils.GetLatestCityId()).Heart}"; latestCityHeartCount.OnValueChangedAsObservable().Subscribe(x => {