public override void OnStart(StartState state) { if (state == StartState.Editor) { return; } String[] resources_to_supply = { ResourceManager.FNRESOURCE_MEGAJOULES }; this.resources_to_supply = resources_to_supply; base.OnStart(state); part.force_activate(); inputResourceNames = ParseTools.ParseNames(inputResources); inputResourceRate = ParseTools.ParseDoubles(inputConversionRates); outputResourceRate = ParseTools.ParseDoubles(outputConversionRates); }
public override void OnStart(StartState state) { if (state == StartState.Editor) { return; } string[] resources_to_supply = { ResourceSettings.Config.ElectricPowerInMegawatt }; this.resources_to_supply = resources_to_supply; base.OnStart(state); if (forceActivateAtStartup) { part.force_activate(); } inputResourceNames = ParseTools.ParseNames(inputResources); inputResourceRate = ParseTools.ParseDoubles(inputConversionRates); }