말풍선 set 오류 수정
This commit is contained in:
parent
0be6cb6059
commit
909a0382e9
@ -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)
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user