/// <summary> /// Allows enabling/disabling electric generators (and fuel cells) /// </summary> /// <param name="state"></param> public void ButtonEnableElectricGenerator(bool state) { if (vessel != null) { RPMVesselComputer comp = RPMVesselComputer.Instance(vessel); comp.SetEnableGenerators(state); } }