I decided the easiest was to do this would be to store the data inside an XML file.
This data was then read in through script, and stored as the variables within the player attributes.
I also decided that the data was also to be loaded seperatly when in the shop menu, as the player attributes script doesn't exist there. Therefore in the shop menu the data is loaded stored as a placeholder variable, and then when the user leaves the shop it is saved, and can be loaded with the updated stats when the game starts
No comments:
Post a Comment