YiHe_AllVersion/YHWeb/Assets/YHElectric/Scripts/Entity/Equipment.cs

50 lines
1.1 KiB
C#

using HighlightingSystem;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.EventSystems;
namespace YHElectric
{
public enum EquipmentType
{
VRV空调风机,
,
,
,
,
,
,
,
VRV空调外机,
monitor_qj,
monitor_pd,
monitor_cn,
monitor_gf,
monitor_sc,
monitor_kt,
monitor_cd,
monitor_zm
}
public class Equipment : MonoBehaviour
{
public EquipmentType type;
private Highlighter highlighter;
void Start()
{
highlighter = GetComponent<Highlighter>();
highlighter.enabled = false;
}
private void OnMouseEnter()
{
//if (EventSystem.current.IsPointerOverGameObject()) return;
highlighter.enabled = true;
}
private void OnMouseExit()
{
//if (EventSystem.current.IsPointerOverGameObject()) return;
highlighter.enabled = false;
}
}
}