private void Setup() { isVisible = false; isInteractive = false; name = "ServiceRestrictionCampusPanelWrapper"; padding = new RectOffset(10, 10, 4, 4); relativePosition = new Vector3(ServiceRestrictionsMod.Settings.PanelX, ServiceRestrictionsMod.Settings.PanelY); backgroundSprite = "MenuPanel"; _titlebar = AddUIComponent <UiCampusTitleBar>(); _panel = AddUIComponent <CampusPanel>(); }
public override void Start() { base.Start(); Instance = this; Setup(); }