I’ve made a basic incremental game loosely following these tutorials:
This is my first time using unity.
I essentially have 10 buttons to purchase different gold per second upgrades, and 10 buttons for purchasing gold per click upgrades. Each can be purchased multiple times (leveled up), and the price increases with each purchase.
I currently have it so that PlayerPrefs saves the current gold, but I can not figure out how to have it save the information for each button ( ex. number owned and cost), since the UI buttons are all running the same scripts.
I have one script which controlls gpcUpgrades, and another for gpsUpgrades, so I do not know how I would save the instances of each class. I am trying to save the level and cost for each one.