Hey guys. I am making a TD game and I've decided to not use a grid system. I am spawning objects with just drag and drop with colliders. There is only one problem. Everything works fine but when there is a spawned turret near the enemies' path and I drag the new object across both of the colliders(the collider for the path and for the spawned turret) The color for indicating whether you can or cannot spawn the turret there, is glitching. I know why it happens but I don't know how to fix it. Basically, the "OnTriggerExit" activates for a second when I leave the path collider even though I am still in the turret's collider. Can someone please help me with this? I will try to upload a short clip to show you what I am talking about.
Video for more info: https://streamable.com/nwvhjb
The problem is in the transition from a collider to a different collider.
The OnColliderExit activates every time it leaves a collider no matter if it still collides with another object.
The code that I showed you works fine.
The only problem is the color the color changes for a second every time it exits a collider but the turret cannot be spawned there.