public void Start() { WBIVTOLManager.Instance = this; GameEvents.onVesselLoaded.Add(VesselWasLoaded); GameEvents.onVesselChange.Add(VesselWasChanged); GameEvents.onStageActivate.Add(OnStageActivate); 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(); }
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(); }