Exemplo n.º 1
0
        public void Start()
        {
            WBIVTOLManager.Instance = this;
            GameEvents.onVesselLoaded.Add(VesselWasLoaded);
            GameEvents.onVesselChange.Add(VesselWasChanged);
            GameEvents.onStageActivate.Add(OnStageActivate);

            hoverGUI             = new HoverVTOLGUI();
            hoverGUI.vtolManager = this;
            hoverGUI.hoverSetupGUI.vtolManager = this;

            this.vessel = FlightGlobals.ActiveVessel;

            //Get the current control code mappings
            LoadControls();
        }
Exemplo n.º 2
0
        public void Start()
        {
            WBIVTOLManager.Instance = this;
            GameEvents.onVesselLoaded.Add(VesselWasLoaded);
            GameEvents.onVesselChange.Add(VesselWasChanged);
            GameEvents.onStageActivate.Add(OnStageActivate);

            hoverGUI             = new HoverVTOLGUI();
            hoverGUI.vtolManager = this;
            hoverGUI.hoverSetupGUI.vtolManager = this;

            this.vessel = FlightGlobals.ActiveVessel;

            //Get the current control code mappings
            hoverControlsPath = AssemblyLoader.loadedAssemblies.GetPathByType(typeof(WBIVTOLManager)) + "/VTOLControls.cfg";
            LoadControls();
        }