Issue with Physics.Raycast / SphereCast...

Hi everybody,
I am working on a project using Capsule colliders, sphere colliders and Raycast / sphere cast on different layers.

Each few seconds, some gameobjects with colliders and a navmesh are instaciated and move in a direction.
The player could click to shoot them. Each click cast a ray which collide only with the ennemies and the ground.

All works fine on the editor until the wave 40 - 43 (during approximatively 2 minutes). Once it’s reached, the raycast stop collide with ennemies and only hit the ground randomly during few seconds.
Nothing in my script is activated at wave 40 and the Unity’s profiler seems to be normal…

I have already checked the colliders size of ennemies, the different layers, the position of my raycasts, the quantity of colliders, changing the fixed timestep, rewritting all my script, rebuilding my gameobjects, preying god, sleeping a lot and nothing work :-/

I hope it is not a Unity’s bug but I really don’t understand what happen…

If someone have the same issue and maybe solve it, I will be really happy to read his answer :razz:

Hi !
I always need your help =)

Some Up…

might wanna try moving this to the scripting forum