From 909a0382e9a6de7e16f01434620b531604fceca7 Mon Sep 17 00:00:00 2001 From: NTG Date: Fri, 29 Aug 2025 19:35:52 +0900 Subject: [PATCH] =?UTF-8?q?=EB=A7=90=ED=92=8D=EC=84=A0=20set=20=EC=98=A4?= =?UTF-8?q?=EB=A5=98=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../_Scripts/Game/GameUi/BaseUi/WorldUis/SpeechBubble.cs | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Assets/_DDD/_Scripts/Game/GameUi/BaseUi/WorldUis/SpeechBubble.cs b/Assets/_DDD/_Scripts/Game/GameUi/BaseUi/WorldUis/SpeechBubble.cs index b97bbc31d..c46214ea6 100644 --- a/Assets/_DDD/_Scripts/Game/GameUi/BaseUi/WorldUis/SpeechBubble.cs +++ b/Assets/_DDD/_Scripts/Game/GameUi/BaseUi/WorldUis/SpeechBubble.cs @@ -17,13 +17,19 @@ public class SpeechBubble : MonoBehaviour, ISpeechBubble private void Start() { + SetImage((Sprite)null); HidePanel(); } private void ShowPanel() => _panel.SetActive(true); private void HidePanel() => _panel.SetActive(false); public void SetImage(Sprite sprite) => _itemImage.sprite = sprite; - public void SetImage(string key) => DataManager.Instance.GetSprite(key); + + public void SetImage(string key) + { + var sprite = DataManager.Instance.GetSprite(key); + SetImage(sprite); + } public void Show(Sprite sprite) {