인벤토리 기능 추가
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user