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>();
 }
示例#2
0
 public override void Start()
 {
     base.Start();
     Instance = this;
     Setup();
 }