private void initializeController() { KSPWheelBase[] bases = part.GetComponents <KSPWheelBase>(); controller = bases[baseModuleIndex]; if (controller == null) { throw new NullReferenceException("ERROR: Could not locate KSPWheelBase controller module for wheel system."); } controller.addSubmodule(this); wheelData = controller.wheelData[wheelIndex]; postControllerSetup(); onUIControlsUpdated(controller.showControls); }
public WheelDebugData(KSPWheelBase baseModule, KSPWheelBase.KSPWheelData wheelData) { this.baseModule = baseModule; this.wheelData = wheelData; }