protected override void Awake()
        {
            //toolbar
            if (ToolbarManager.ToolbarAvailable)
            {
                _toolbarItem = AddComponent <LaunchCountDownToolbar>();
            }

            Visible = !ToolbarManager.ToolbarAvailable;

            if (LaunchCountdownConfig.Instance.Info.IsLoaded)
            {
                WindowRect = LaunchCountdownConfig.Instance.Info.WindowPosition;
            }
            else
            {
                WindowRect = new Rect(0, 0, 459, 120);
                WindowRect.CenterScreen();
            }

            WindowStyle = StyleFactory.MainWindowStyle;

            _launchSequenceWindow             = AddComponent <LaunchSequenceWindow>();
            _launchSequenceWindow.WindowStyle = StyleFactory.LaunchSequenceStyle;
            _launchSequenceWindow.OnClosed   += WindowOnClosed;

            _settingsWindow             = AddComponent <SettingsWindow>();
            _settingsWindow.WindowStyle = StyleFactory.SettingsStyle;
            _settingsWindow.OnClosed   += WindowOnClosed;

            _launcher                   = AddComponent <LaunchControl>();
            _launcher.OnTick           += _launcher_OnTick;
            _launcher.OnVesselLaunched += _launcher_OnVesselLaunched;
            _launcher.OnVesselAborted  += _launcher_OnVesselAborted;

            LaunchCountdownConfig.Instance.Info.OnChanged += Instance_OnChanged;
        }
        protected override void Awake()
        {
            //toolbar
            if (ToolbarManager.ToolbarAvailable)
            {
                _toolbarItem = AddComponent<LaunchCountDownToolbar>();
            }

            Visible = !ToolbarManager.ToolbarAvailable;

            if (LaunchCountdownConfig.Instance.Info.IsLoaded)
            {
                WindowRect = LaunchCountdownConfig.Instance.Info.WindowPosition;
            }
            else
            {
                WindowRect = new Rect(0, 0, 459, 120);
                WindowRect.CenterScreen();
            }

            WindowStyle = StyleFactory.MainWindowStyle;

            _launchSequenceWindow = AddComponent<LaunchSequenceWindow>();
            _launchSequenceWindow.WindowStyle = StyleFactory.LaunchSequenceStyle;
            _launchSequenceWindow.OnClosed += WindowOnClosed;

            _settingsWindow = AddComponent<SettingsWindow>();
            _settingsWindow.WindowStyle = StyleFactory.SettingsStyle;
            _settingsWindow.OnClosed += WindowOnClosed;

            _launcher = AddComponent<LaunchControl>();
            _launcher.OnTick += _launcher_OnTick;
            _launcher.OnVesselLaunched += _launcher_OnVesselLaunched;
            _launcher.OnVesselAborted += _launcher_OnVesselAborted;

            LaunchCountdownConfig.Instance.Info.OnChanged += Instance_OnChanged;
        }