Hello, please help me solve the problem. To save the value of the global variable "gold" I use this code and it works:
localStorage.setItem("gold_save", runtime.globalVars.gold);
But I have a problem with saving instance variables. For example, I have an object "Box" that has an instance variable "Health". How can I save the value of the variable "Health" of the instance "Box" using code?