using HighlightPlus;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
///
/// 可交互物体高亮
///
public class InteractiveObjects : MonoBehaviour
{
private HighlightEffect _highlight;
private void Awake()
{
_highlight = this.GetComponent();
}
private void OnEnable()
{
_highlight.highlighted = false;
}
private void OnMouseEnter()
{
_highlight.highlighted = true;
}
private void OnMouseExit()
{
_highlight.highlighted = false;
}
}