Inheritance: PartModule
Exemplo n.º 1
0
 public virtual void updateConterpartSize(StretchyTanks counterpart)
 {
     if (counterpart.stretchFactor != stretchFactor || counterpart.radialFactor != radialFactor)
     {
         counterpart.stretchFactor = stretchFactor;
         counterpart.radialFactor = radialFactor;
         counterpart.triggerUpdate = true;
     }
 }
Exemplo n.º 2
0
        public override void updateConterpartSize(StretchyTanks counterpart)
        {
            var cpart = counterpart as StretchyConicTank;
            if (cpart == null) return;

            if (cpart.stretchFactor != stretchFactor || cpart.radialFactor != radialFactor
              || cpart.topFactor != topFactor || cpart.coneShape != coneShape)
            {
                cpart.stretchFactor = stretchFactor;
                cpart.radialFactor = radialFactor;
                cpart.topFactor = topFactor;
                cpart.coneShape = coneShape;
                cpart.triggerUpdate = true;
            }
        }