So i have tried to follow exactly how it shows in the video but i still get these errors:
NullReferenceException: Object reference not set to an instance of an object
RPG.Control.AIController.InAttackRangeOfPlayer () (at Assets/Scripts/Control/AIController.cs:34)
RPG.Control.AIController.Update () (at Assets/Scripts/Control/AIController.cs:22)
I have solved that the problem is the player that returnes null but the player is tagged as Player and in the script(AIController i got:
player = GameObject.FindWithTag(“Player”);
i am gonna upload a picture of the code.
And here is a picture of the player prefab:
I have read alot of different post thats almost the same problem but cant seem to find my own problem about it.
Im also gonna post enemies prefab:
If there is anything else needed please do respond and try to help. Getting stuck here was a bummer