Whenever I run my game there is a null reference exception being called every frame on line 33 of my code here: null reference exception line 33 - Pastebin.com
I’m wondering how I can stop this error being logged every frame since I find it kind of annoying, I know it’s being called every frame because it is in the update function, and that it is asking for an instance of audiolistener but the volume variable is static so I’m not sure how to make it so that the error is fixed. I also wouldn’t mind if the error isn’t technically fixed but the error just stops logging.