翼狐角色系列全套
using System;using UnityEngine;/// <summary>/// 第一个自己创建的拖拽功能/// </summary>public class MyFirstDragDropItem:UIDragDropItem{
private GameObject sourceParent;
/// <summary>
/// 重写父类的拖拽开始函数
/// </summary>
protected override void OnDragDropStart ()
{
//当拖拽开始时存储原始的父对象
this.sourceParent = this.transform.parent.gameObject;
base.OnDragDropStart ();
}
/// <summary>
/// 重写父类的拖拽释放函数
/// </summary>
protected override void OnDragDropRelease (GameObject su