I have a problem in a Unity project that im developing. I can't make the new values to be saved and used later at the same scene (it goes from this scene (shop) to another scene to then come back to the first scene (shop). Basically, I buy upgrades from a shop until it's "max", then, when I come back to this scene, the value is at level 1 (even though I already have the lvl max and I can't buy more because I have it at max lvl).
The images are all the code that I used. I've tried using playerprefs to save the new values, but it simply doesn't work. (I highlight the playerprefs code that I tried to use bit it didn't work).
If someone could help me it would be very nice, I have to finish this by next week 🥲😓.