Hi everyone!
So when I use Hotspot Detector and disable current hotspot, the Hotspot Detector still has nearestHotspot field set to this hotspot and I can still interact with it. Furthermore when I move away from it, it doesn't trigger OnTriggerExit2D event function, so it is still active even when I am far away. For now I have fixed it by checking in GetSelected() function if hotspot's function IsOn returns false or if object with hotspot is deactivated in hierarchy, and then setting nearestHotspot to null and removing from hotspots list.
Tried to find a different way, which won't change anything in AC, but only thing I could find was how to disable highlight.
Comments