Hello, so I’ve created a shop that contains upgrades to things such as health and such, and when you buy one of those upgrades, it increases your health by a percentage each time but it also increases the price, I have that all working however the only issue is once I switch scenes back to the main game and then back to the shop the prices reset instead of keeping the higher price, how could I fix that?
Example:
if (GameManager.money >= price)
{
GameManager.money -= price;
price += Mathf.RoundToInt(price * .2f);
}