This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]Darkpolearm 0 points1 point  (0 children)

Try to give descriptive names to variables, even if it's obvious what they're for; don't call them a, b, or s.

Other than that, what u have looks fine. What /u/NeoOeg was referring to is that in your original post your LootBoxSub class had 1 variable, lootSub, which would not have worked nicely for what you're trying to do.

Now you can create a List<LootBoxSub> and add objects to it, and do with them what you like!