How to use:
1.First create a empty object,and add a navMesh surface component.
2.Put Dungeon prefab to level
height and width is the map size
smooth set 2 or 3 is the best
White mark is the ground
G1-G4 is the wall
There are two types of Agents, The thief will randomly wander around the map when the Award Box is not detected. Once it sees contact (ray detection), it will run back to the starting point with the box.
The guard (Troll) will patrol around the box, and once it finds the thief, it will chase him.