I have an Array as part of a class and can add items to that, but I would like to add items directly to the Class itself. Is that possible?
public class Buttons {
public Array<SimpleButton> buttons = new Array<SimpleButton>();
}
Then I can add items like this:
buttons.buttons.add(simpButton);
But I want to add items directly like this:
buttons.add(simpButton);