Cannot access non-static method in static context?
I'm creating a JSON saving system for my unity game right now. I've already made one before that worked perfectly fine so I just copied that script over, but whenever I try to save data, I get "Cannot access non-static method 'SaveData' in static context" in Rider and Unity says "An object reference is required for the non-static field, method, or property 'JSONHandler.SaveData(int, int)'". The JSON saving script is not static and the script that it's getting called from is also not static. It also looks identical to the other game but does not work here.


