I feel stupid for asking this but how come the following code doesn’t increase LevelsConfig.Agility, it only increases the local variable Level.
I want to do it this way because I have stats such as Agility, Endurance etc and I don’t want a function for each one saying IncreaseAgility, IncreaseEndurance etc.
How would I do this?
Not sure how the rest of your code works but don’t use the same variable names in case you’re trying to assign to another variable named Level elsewhere.