예제 #1
0
        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();
                }
            }
        }
예제 #2
0
        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();
                }
            }
        }