public void TogglePressurized() { showClosedMesh = !showClosedMesh; SetVisibleObjects(); //Handle symmetrical parts if (HighLogic.LoadedSceneIsEditor) { foreach (Part symmetryPart in this.part.symmetryCounterparts) { ModuleHexPort hexPort = symmetryPart.GetComponent <ModuleHexPort>(); hexPort.showClosedMesh = showClosedMesh; hexPort.SetVisibleObjects(); } } }
public void ToggleBracing() { showBracing = !showBracing; SetVisibleObjects(); //Handle symmetrical parts if (HighLogic.LoadedSceneIsEditor) { foreach (Part symmetryPart in this.part.symmetryCounterparts) { ModuleHexPort hexPort = symmetryPart.GetComponent <ModuleHexPort>(); hexPort.showBracing = showBracing; hexPort.SetVisibleObjects(); } } }