I am working on a top-down point and click game set on an island (made up of Unity terrain objects). When I give one of my charcters a move command I would like them to navigate around the water when walking around on the island, but at the same time walk through shallow water or swim through the water if told to do so. For example, if told to collect an item in the shallows or swim to an object floating in the water. Also, the water level changes as the tide goes in and out.
Would this pathfinding solution allow me to change when an agent can walk through the water or whether they should avoid it on the fly?