I am starting work on a level up system and I am looking for the most efficient way of handling this.
I current plan is to have the players total experience in a variable and then have a bunch of if statements.
if exp > 100 = make player level 2
if exp > 400 = make player level 3
if exp > 1200 = make player level 4
and so on.
I have a feeling there is a simpler way to do this though. Perhaps with JSON or a Dictionary or who knows.