Just a quick question, I noticed we are using nested Classes more in this course than the previous Combat Course and I wandering if there’s a reason not to use constructors with our nested Classes.
For Example the Nested Class DockedItemSlot:
private class DockedItemSlot
{
public ActionItem item;
public int number;
public DockedItemSlot() {}
public DockedItemSlot(InventoryItem item, int number)
{
this.item = item as ActionItem;
this.number = number;
}
}
Now would this cause some performance issue later down the line, is this bad programming practice, is this just a style consistency thing, or is it one of those weird Unity quirks that causes a problem later down the line?