提交,device工具,闪烁,每次都默认outLine为1,不需要为0,避免其他功能修改outLine的值

This commit is contained in:
李浩 2025-03-05 17:17:48 +08:00
parent 194d094fb2
commit fd9c20c8a8

View File

@ -303,15 +303,22 @@ namespace HighlightPlus {
} }
void OnMouseEnter() { void OnMouseEnter() {
if (isActiveAndEnabled && triggerMode == TriggerMode.ColliderEventsOnlyOnThisObject) { if (isActiveAndEnabled && triggerMode == TriggerMode.ColliderEventsOnlyOnThisObject) {
if (!CanInteract()) return; if (!CanInteract()) return;
Debug.Log("进入");
hb.outline = 1;
Highlight(true); Highlight(true);
} }
} }
void OnMouseExit() { void OnMouseExit() {
if (isActiveAndEnabled && triggerMode == TriggerMode.ColliderEventsOnlyOnThisObject) { if (isActiveAndEnabled && triggerMode == TriggerMode.ColliderEventsOnlyOnThisObject) {
if (!CanInteract()) return; if (!CanInteract()) return;
Debug.Log("退出");
hb.outline = 1;
Highlight(false); Highlight(false);
} }
} }