using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
//引入命名空间
using UnityEngine.EventSystems;
//继承接口
public class TextEventSystem : MonoBehaviour,IDragHandler {
//实现接口的方法
public void OnDrag(PointerEventData eventData)
{
//实现GAME窗口的鼠标拖拽
this.transform.position = Input.mousePosition;
throw new Not
unity _game窗口图片精灵拖拽(背包物品,或者技能)
最新推荐文章于 2023-08-17 13:57:36 发布