SSTUTools.SSTUModularBooster.initiaizePrefab C# (CSharp) Method

initiaizePrefab() private method

Initializes thrust transforms for the part; should only be called during prefab init. Transforms will then be cloned into live model as-is.
private initiaizePrefab ( ) : void
return void
        private void initiaizePrefab()
        {
            Transform modelBase = part.transform.FindRecursive("model");

            GameObject thrustTransformGO = new GameObject(thrustTransformName);
            thrustTransformGO.transform.NestToParent(modelBase.transform);
            thrustTransformGO.SetActive(true);

            GameObject gimbalTransformGO = new GameObject(gimbalTransformName);
            gimbalTransformGO.transform.NestToParent(modelBase.transform);
            gimbalTransformGO.SetActive(true);
        }