How do i access the steeringTarget after the current steeringTarget?

I’m raycasting a ray from the agent in the direction of the steeringTarget with a specific length. If it reaches the steeringTarget i want to cast another ray with the remaing length towards the next one. I’m doing this to predict the position of enemies in a tower defense game which i will launch a projectile towards.

Doesn’t look like this is an ML Agents question, as it looks like you’re searching for a sort of Navmesh functionality, right?