using System;
using UnityEngine;
using UnityEngine.EventSystems;
///
/// 打孔带在 UI 中的拖拽与点击交互。
///
namespace AibisDream.FixSystem
{
public class PunchTapeInteraction : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler, IPointerClickHandler,
IBeginDragHandler, IDragHandler, IEndDragHandler
{
private Canvas canvas;
[HideInInspector]
public bool isFavorited = false;
private RectTransform rectTransform;
private CursorMode cursorMode = CursorMode.Auto;
private bool isLocked = false;
private bool _favoriteDragActive;
private void Awake()
{
rectTransform = GetComponent();
}
private void OnEnable()
{
canvas = GetComponentInParent