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 => {