How to gather/mine a recourse for a rts game?

OMG why didnt I think of that, now Im using the navmesh so that I can move my character around with the mouse. Ive set the character as an ai, and used an interface to move him with my custom rts camera I made with an object