Files
yaoyanwei 2f2a601227 init
2025-08-04 16:45:48 +08:00

39 lines
641 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace TcgEngine.FX
{
/// <summary>
/// FX that appear when hovering a target
/// </summary>
public class HoverFX : MonoBehaviour
{
public GameObject fx;
private bool hover = false;
void Start()
{
}
void Update()
{
if (hover != fx.activeSelf)
fx.SetActive(hover);
}
public void PointerEnter()
{
hover = true;
}
public void PointerExit()
{
hover = false;
}
}
}