I found a package for unity that lets u use NavMeshAgents for 2D game, take a look at it!
https://github.com/h8man/NavMeshPlus
mane, he used GameMaker.... I literally says it at the page.