인벤토리 기능 추가

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

@@ -4,9 +4,13 @@ using UnityEngine.EventSystems;
public static class Extension
{
public static void AddUIEvent(this GameObject go, Action<PointerEventData> action,
Define.UIEvent type = Define.UIEvent.Click)
public static T GetOrAddComponent<T>(this GameObject go) where T : UnityEngine.Component
{
UI_Base.AddUIEvent(go, action, type);
return Util.GetOrAddComponent<T>(go);
}
public static void AddUIEvent(this GameObject go, Action<PointerEventData> action, Define.UIEvent type = Define.UIEvent.Click)
{
UI_Base.BindEvent(go, action, type);
}
}