public void AddGuiComponent(GuiComponent component) { if (component == null) throw new Exception("Component can't be null"); _components.Add(component); }
public static void AddGuiComponent(GuiComponent comp) { _componentsToAdd.Add(comp); }