Example #1
0
 public override void Awake()
 {
     base.Awake();
     AllTabFields = ControlTab.GetTabFields(GetType());
     AllWindows   = subwindows.Where(sw => sw is ControlWindow).Cast <ControlWindow>().ToList();
     GameEvents.onGameStateSave.Add(save_config);
     GameEvents.onVesselChange.Add(onVesselChange);
     NavigationTab.OnAwake();
 }
        #pragma warning restore 169

        #region Initialization
        public override void Awake()
        {
            base.Awake();
            AllTabFields = ControlTab.GetTabFields(GetType());
            AllPanels.Add(VFlight_Panel);
            AllPanels.Add(Attitude_Panel);
            AllPanels.Add(Maneuver_Panel);
            AllPanels.Add(Status_Panel);
            AllPanels.Add(Info_Panel);
            GameEvents.onVesselChange.Add(onVesselChange);
            GameEvents.onVesselDestroy.Add(onVesselDestroy);
            NavigationTab.OnAwake();
        }