void updateShroud()
        {
            if (!shroudEnabled)
            {
                destroyShroud();
            }
            if (shroudGO == null || shroudShaper == null)
            {
                createNewShroudGO();
            }

            updateTextureScale();

            shroudShaper.update();
            if (shroudGO != null)
            {
                shroudGO.SetActive(!invisibleShroud);
            }

            if (isFarInstalled())
            {
                //Debug.Log("[Debug] Updating FAR Voxels");
                part.SendMessage("GeometryPartModuleRebuildMeshData");
            }
        }
Example #2
0
 void updateShroud()
 {
     if (!shroudEnabled)
     {
         destroyShroud();
     }
     if (shroudGO == null || shroudCylinders == null)
     {
         createShroudGO();
     }
     shroudCylinders.update();
 }
 void updateShroud()
 {
     if (!shroudEnabled)
     {
         destroyShroud();
     }
     if (shroudGO == null || shroudCylinders == null)
     {
         createShroudGO();
     }
     shroudCylinders.update(vertOffset, height, botWidth, topWidth, thickness);
 }
Example #4
0
 void updateShroud()
 {
     if (!shroudEnabled)
     {
         destroyShroud();
     }
     if (shroudGO == null || shroudCylinders == null)
     {
         createShroudGO();
     }
     updateTexture();
     shroudCylinders.update();
     shroudGO.GetComponent <MeshRenderer>().enabled = !invisibleShroud;
 }