using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
///
/// ͨÓÃÍÏ×§×é¼þ
///
public class DragUIItem :MonoBehaviour,IDragHandler,IBeginDragHandler,IEndDragHandler
{
private RectTransform rectTransform;
private Canvas canvas;
private Vector2 startPosition;
private bool restrictToCanvas = true;
private LayoutGroup parentLayoutGroup;
private void Awake()
{
rectTransform = GetComponent();
canvas = GetComponentInParent