diff --git a/Gameton-06/Assets/Gameton/Scripts/Character/PlayerDataManager.cs b/Gameton-06/Assets/Gameton/Scripts/Character/PlayerDataManager.cs index a90c7da3..d3d7178a 100644 --- a/Gameton-06/Assets/Gameton/Scripts/Character/PlayerDataManager.cs +++ b/Gameton-06/Assets/Gameton/Scripts/Character/PlayerDataManager.cs @@ -97,11 +97,12 @@ namespace TON // UpdateUI(); }); } - public void UseGold(int amount) + public void UseGold(int amount, System.Action callback) { if (goldAmount - amount < 0) { // 골드 재화 사용 불가 팝업 + callback?.Invoke(false); UIManager.Show(UIList.GoldPopup); return; } @@ -109,8 +110,7 @@ namespace TON goldAmount -= amount; cashDataManager.UpdateGoldData(goldAmount, updatedData => { - // TODO: UI 업데이트 로직 적용 - // UpdateUI(); + callback?.Invoke(true); }); }