If the player is out of sight, then enemies will move according to WayPoints.
To add these waypoints, you need to create an empty object, place it in the desired position and add the WayPoint tag. (To visualize the points, add DrawGizmo to them)
Then, when you start the game, EnemyMove will find all the points on the scene and use them for movement.
There are several types of movement that can be selected in the script.
Random - the enemy moves following random points.
Course - the enemy moves following the points in order (as they are located in the Hierarchy).
Find nearest point - the enemy goes to the nearest point, which he finds near him.