using F3Device.Screen;
using QFramework;
using QFramework.Example;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
using UnityEngine.UI;
using static UnityEngine.GraphicsBuffer;
///
/// 通用拖拽组件
///
public class DragUIItem : MonoBehaviour, IDragHandler, IBeginDragHandler, IEndDragHandler
{
public string targetName; // 目标物体名称
private RectTransform rectTransform;
private Canvas canvas;
private Vector2 startPosition;
private LayoutGroup parentLayoutGroup;
private GraphicRaycaster graphicRaycaster;
private int startIndex;
public bool IsFirst = true;
private void Awake()
{
rectTransform = GetComponent();
canvas = GetComponentInParent