move along path

how can I move a player along the waypoints without using coroutiner?

void Update ()
    {
        if (startTime < timeMove)
        {
            startTime += Time.deltaTime;
            //il nemico si muove

            target.position = Vector3.MoveTowards(current.position, path[index+1].position, 1F);
        }
        else
        {
            //se il nemico è nella posizione del nodo incremento l'index
            index += 1;
            current = path[index];
            timeMove = 0F;
        }
       
   }

You’re on the right track. Use Vector3.MoveTowards() to move as you’re doing (don’t forget to multiply the third parameter by delta time though). Then check the distance between the current position and the target position (Vector3.Distance()), and if its within some threshold, increase the waypoint index.