예제 #1
0
 /// <summary>
 /// 点击物体时 开始拖拽
 /// </summary>
 public void OnPointerDown(PointerEventData eventData)
 {
     Debug.LogError("QBagDrag" + name);
     if (!QBag.IsDrag)
     {
         QBag.DragItem(this);
     }
 }
예제 #2
0
 // Start is called before the first frame update
 void Start()
 {
     bag = GetComponentInParent <QBag>();
 }