using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.EventSystems;
namespace TcgEngine.UI
{
///
/// Target in the UI that can be hovered (and text will appear)
///
public class HoverTargetUI : MonoBehaviour, IPointerEnterHandler, IPointerExitHandler
{
[TextArea(5, 7)]
public string text;
public float delay = 0.5f;
public int text_size = 22;
public int width = 350;
public int height = 140;
private Canvas canvas;
private RectTransform rect;
//private LangTableText ltable;
private float timer = 0f;
private bool hover = false;
void Awake()
{
canvas = GetComponentInParent