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");
            }
        }
예제 #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);
 }
예제 #4
0
 void updateShroud()
 {
     if (!shroudEnabled)
     {
         destroyShroud();
     }
     if (shroudGO == null || shroudCylinders == null)
     {
         createShroudGO();
     }
     updateTexture();
     shroudCylinders.update();
     shroudGO.GetComponent <MeshRenderer>().enabled = !invisibleShroud;
 }