So i was following along with the video and was copying the code out as it was in the video. However when i went to run the game i got a compile error. so i looked up the error and changed a few things such as creating instances of methods and making some methods static and nothing was working.
so i changed the code back to how it was in the video and it still didn’t work. i went to get some food and when I came back I checked again and somehow it was working completely fine. Unity being confusing at its finest.