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.enabled = false; } private void OnMouseEnter() { //if (EventSystem.current.IsPointerOverGameObject()) return; highlighter.enabled = true; } private void OnMouseExit() { //if (EventSystem.current.IsPointerOverGameObject()) return; highlighter.enabled = false; } } }