Lecture Ref: 5_IN_RPG
Im having a problem where i am getting this error after making changes in this lecture.
NullReferenceException: Object reference not set to an instance of an object
RPG.Control.AIController.Update () (at Assets/Project/Script/Control/AIController.cs:22)
Basically, the enemy is not chasing me and everytime i get close to it its giving me that error message.
someone had the same question and the only answer they got was from another student who said they had to unroot it from the character and make it its own prefab b y deleting it and then making a new enemy prefab and it worked but im wondering if i have to do this.
this is a link to my project files:
https://jayyron.itch.io/rpg-course-errors
Password is: RPG
