feat: IngameUI 이벤트 연결되지 않는 부분 버그 수정

This commit is contained in:
aube.lee
2025-02-27 22:58:06 +09:00
parent 065c6c373e
commit 475408e223

View File

@@ -23,11 +23,6 @@ namespace TON
private int lastSeconds = -1; private int lastSeconds = -1;
private string cachedTimeString = "00:00"; private string cachedTimeString = "00:00";
// public TextMeshProUGUI monsterHp;
// public Image monsterHpBar;
// public Image monsterImage;
private string playerType; private string playerType;
[SerializeField] private CharacterBase character; [SerializeField] private CharacterBase character;
@@ -35,7 +30,7 @@ namespace TON
private void OnEnable() private void OnEnable()
{ {
character = GameObject.FindWithTag("Player").GetComponent<CharacterBase>(); character = GameObject.Find("TON.Player").GetComponentInChildren<CharacterBase>();
playerType = PlayerDataManager.Singleton.player.type; playerType = PlayerDataManager.Singleton.player.type;
if (character != null) if (character != null)