On line 16 there is an error which I don't understand how to fix. I am still pretty new to unity so if I could get a clear descriptionenter image description here that would be great.
CodePudding user response:
Have you loaded the scene inside the build Settings?
CodePudding user response:
From the code you shared, it looks like you're assigning:
playerStorage.initialValue = playerPosition;
BUT
playerPosition is never assigned to. It's basically saying: "I know you're telling me to reference this variable but it doesn't exist yet."
Try giving playerPosition a value before line 16 and see if you can work from there.