I am not sure what the best way is to do the following:
I am creating a level up system in my game and i am not sure what to use ( array or dictionary ) for my needs.
I have a level up table, for example: lvl 1 = 83 exp, lvl 2 = 150 exp, lvl 3 = 300 exp.
Now what i tried to do is creating a dictionary with a key named: expTable.
As key i added "83,150,300".
So the result is like:
Dictionary > Add key: "expTable" value: "83,150,300".
Is there any way to get for example the "300" in that array? I can not find the right solution.
I need something like: Dictionary > Get key "expTable(3)". As where the 3 would be the third number in the "83,150,300" value.
Any help is really appreciated. Thanks in advance!