
- add a line of code to turn off MiniMap off when approaching enough






- create variables for
- x, z position
- where NPC head
- in Start() method,
- set X, Z values with Random.Range()
- set the NPC’s transform.Position with a Vector3 with the X, and Z values
- Start the Coroutine
- in Update() method
- make NPC keep looking at Cube(Destination) by using LookAt()
- make NPC walk towards Cube(Destination) by using MoveTowards()
- create IEnumerator RandomWalk()
- wait for 5 seconds whenever creating changing the location of Cube(Destination)
- set X, Z values which we measured with Cube(Destination)
- change the Cube(Destination)
- get the Coroutine started in the Coroutine
- automatically the Coroutine will be repeated
the logic is, make NPC play “walk” animation, create a gameObject where NPC keep chasing, and make NPC walk towards it

















