인벤토리 기능 추가
This commit is contained in:
@@ -50,7 +50,7 @@ public class UI_Button : UI_Popup
|
||||
GetButton((int)Buttons.PointButton).gameObject.AddUIEvent(OnButtonClicked);
|
||||
|
||||
GameObject go = GetImage((int)Images.ItemIcon).gameObject;
|
||||
AddUIEvent(go, (PointerEventData data) => { go.transform.position = data.position; }, Define.UIEvent.Drag);
|
||||
BindEvent(go, (PointerEventData data) => { go.transform.position = data.position; }, Define.UIEvent.Drag);
|
||||
}
|
||||
|
||||
private int _score = 0;
|
||||
|
||||
@@ -2,7 +2,7 @@ using UnityEngine;
|
||||
|
||||
public class UI_Popup : UI_Base
|
||||
{
|
||||
public virtual void Init()
|
||||
public override void Init()
|
||||
{
|
||||
Managers.UI.SetCanvas(gameObject, true);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user