인벤토리 기능 추가

This commit is contained in:
2026-01-27 00:34:47 +09:00
parent 658cd58e30
commit 48466bcc0f
73 changed files with 4779 additions and 228 deletions

View File

@@ -0,0 +1,33 @@
using TMPro;
using UnityEngine;
public class UI_Inven_Item : UI_Base
{
enum GameObjects
{
ItemIcon,
ItemNameText,
}
string _name;
void Start()
{
Init();
}
public override void Init()
{
Bind<GameObject>(typeof(GameObjects));
Get<GameObject>((int)GameObjects.ItemNameText).GetComponent<TextMeshProUGUI>().text = _name;
Get<GameObject>((int)GameObjects.ItemIcon).AddUIEvent((PointerEventData) => { Debug.Log($"아이템 클릭! {_name}"); });
}
public void SetInfo(string name)
{
_name = name;
}
}

View File

@@ -0,0 +1,2 @@
fileFormatVersion: 2
guid: 9578ecba8f55ef24ca7657e44f90bdbe