One solution would be to use the [NavMesh][1] feature in Unity. You can then give your agent a randomly chosen destination with the [`SetDestination`][2] API.
[1]: http://docs.unity3d.com/Documentation/Manual/NavmeshandPathfinding.html
[2]: http://docs.unity3d.com/Documentation/ScriptReference/NavMeshAgent.SetDestination.html
↧