are you sure that collision detection is "scripts" and not "physics"? i think unity uses physx for collision detection.