For some reason, my agents are not smart enough to to follow a simple path, I would want it to follow the dotted line, but isntead it takes the drawn line, and then gets stuck forever in that corner. This is so basic I donät even know what to look for:
public void SetDestination(Vector3 destinationt)
{
agent.destination = destination;
agent.SearchPath();
}