You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

31 lines
700 B

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CheckDarg : MonoBehaviour
{
public SheBeiType ChaKongType;
//是否已有拖拽入物件
public DragItemH dragItem = null;
public bool isEmpty = true;
[HideInInspector]
public Vector3 ChaKongPos;
public void ResetItem()
{
if (dragItem == null) return;
dragItem.ResetPos();
dragItem = null;
isEmpty = true;
//更新已插入设备数据
GameManager.Instance.SendItemData();
}
private void Update()
{
this.GetComponent<RectTransform>().position = Camera.main.WorldToScreenPoint(ChaKongPos);
}
}