So I'm making a game that involves collecting things, in a similar manner to Super Mario Odyssey. Therefore, when the player grabs a collectible, it should be saved and kept the same the whole time. I need to know how to store a variable in a manner where it won't be reset on the change of a scene. I've tried PlayerPrefs and DontDestroyOnLoad to no avail, but to be fair, there really isn't a good explanation on how to use PlayerPrefs online.
↧