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(); }
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>(); }