欢迎光临散文网 会员登陆 & 注册

翼狐角色系列全套

2023-03-29 13:42 作者:方方耍赖很优雅  | 我要投稿

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

翼狐角色系列全套的评论 (共 条)

分享到微博请遵守国家法律