Пример #1
0
        public override void OnAwake()
        {
            instance = this;

            // Create the state machine
            _machine = new KerbalFsmEx();

            InitMachine();
#if false
            _button = ApplicationLauncher.Instance.AddModApplication(
                //() => _machine.RunEvent("Finish"),
                // () => _machine.RunEvent("Init"),

                ToggleOff,
                ToggleOn,
                () => { }, () => { }, () => { }, () => { },
                ApplicationLauncher.AppScenes.FLIGHT,
                GameDatabase.Instance.GetTexture("NASA_CountDown/Icons/launch_icon_normal", false));
#endif
            toolbarControl = gameObject.AddComponent <ToolbarControl>();
            toolbarControl.AddToAllToolbars(ToggleOff,
                                            ToggleOn,
                                            ApplicationLauncher.AppScenes.FLIGHT,
                                            "Countdown_NS",
                                            "countdownButton",
                                            "NASA_CountDown/Icons/launch_icon_normal_38",
                                            "NASA_CountDown/Icons/launch_icon_normal_24",
                                            "NASA CountDown Clock"
                                            );
            //toolbarControl.UseBlizzy(HighLogic.CurrentGame.Parameters.CustomParams<FP>().useBlizzy);
            GravityTurnAPI.VerifyGTVersion();
        }
Пример #2
0
        public void Awake()
        //public override void OnAwake()
        {
            Log.Info("Awake");
            instance = this;

            // Create the state machine
            _machine       = new KerbalFsmEx();
            saveLoadWinPos = new SaveLoadWinPos();
            InitMachine();

            GravityTurnAPI.VerifyGTVersion();

            _dummy = this.gameObject.AddComponent <Helpers.DummyComponent>();
        }