AutoAsparagus.ASPStaging.stageChildren C# (CSharp) Метод

stageChildren() приватный статический Метод

private static stageChildren ( Part p, int stage ) : void
p Part
stage int
Результат void
        private static void stageChildren(Part p, int stage)
        {
            // Sepratrons should be children
            foreach (Part child in p.children) {
                if ((AutoAsparagus.stagesepratrons) && (child.name.ToLower ().Contains ("sepmotor"))) {
                    ASPConsoleStuff.printPart ("..setting child Sepratron to stage " + stage.ToString (), child);
                    setPartStage (child, stage);
                }
                if ((AutoAsparagus.stageParachutes) && (child.name.ToLower ().Contains ("parachute"))) {
                    ASPConsoleStuff.printPart ("..setting child Parachute to stage " + stage.ToString (), child);
                    setPartStage (child, stage);
                }
            }
        }