private void RebuildModel() { Debug.Log("FillItUp.RebuildModel"); FuelTypes.Discover(EditorLogic.fetch.ship, out allShipResources, out allPartsResourcesByStage, out allPartsResourcesShip); _resourcesByStage.SetFuelTypes(allShipResources); _resourcesShip.SetFuelTypes(allShipResources); }
private void RebuildModel() { if (!HighLogic.LoadedSceneIsEditor) { return; } FuelTypes.Discover(EditorLogic.fetch.ship, ref allShipResources, ref allPartsResourcesByStage, out allPartsResourcesShip); _resourcesByStage.SetFuelTypes(allShipResources); _resourcesShip.SetFuelTypes(allShipResources); }