feat: IngameUI 이벤트 연결되지 않는 부분 버그 수정
This commit is contained in:
@@ -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)
|
||||||
|
|||||||
Reference in New Issue
Block a user