Merge branch 'master' into LouDi_Quan

This commit is contained in:
shenjianxing 2025-03-06 13:12:32 +08:00
commit 01654af33d

View File

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