Direct selection instead of loop

For accessing the stat I simply grabbed the list by the index stats[Stats.Health], or rather I tried to and found that I do have to cast the enum value into a int myself…

One loop less, but with having to cast to int and then fishing out the list’s length and so on, it became a bit ugly…

Privacy & Terms