I have a global Dictionary in my project that I want to use to track statistics like current money count, number of HP upgrades, etc. I also want to save these values to WebStorage.
I want to:
1) Load values from Local Storage when the global Dictionary is created
2) Save values from Dictionary to Local Storage when they are altered (or at the end of a level)
How can I do this? Is a global Dictionary the best way to go?