Ejemplo n.º 1
0
        private void UpdatePropertiesWithAnimation()
        {
            if (anim)
            {
                if (anim.isPlaying && !currentlyAnimating)
                {
                    currentlyAnimating = true;
                }
                else if (currentlyAnimating && !anim.isPlaying)
                {
                    currentlyAnimating = false;
                    FARAeroUtil.SetBasicDragModuleProperties(this.part);      //By doing this, we update the properties of this object
                    AttachNodeCdAdjust();                                     //In case the node properties somehow update with the node; also to deal with changes in part reference area
                }
//                bayProgress = bayAnim[bayAnimationName].normalizedTime;
            }
        }
Ejemplo n.º 2
0
 public void UpdatePropertiesWithShapeChange()
 {
     FARAeroUtil.SetBasicDragModuleProperties(this.part);      //By doing this, we update the properties of this object
     AttachNodeCdAdjust();                                     //In case the node properties somehow update with the node; also to deal with changes in part reference area
 }