// 开始拖拽 public void OnBeginDrag(PointerEventData eventData) { Info.debugStr = "OnBeginDrag:" + gridID; lastID = gridID; // 调用交换方法 PickUpDrop.SwapItem(gridID); }
public void OnEndDrag(PointerEventData eventData) { PickUpDrop.SwapItem(gridID); }
public void OnBeginDrag(PointerEventData eventData) { lastID = gridID; PickUpDrop.SwapItem(gridID); }
public void OnEndDrag(PointerEventData eventData) { Debug.Log("EnDDrag"); PickUpDrop.SwapItem(gridID); }
// 结束拖拽 public void OnEndDrag(PointerEventData eventData) { // Info.debugStr = "OnEndDrag:" + gridID; // 调用交换方法 PickUpDrop.SwapItem(gridID); }