Exemplo n.º 1
0
 /// <summary>
 /// To be called from Start() method on either/both this module and from SSTUAnimateRotation.  Ensures synced status between the deploy animation, and the rotation.
 /// </summary>
 /// <param name="module"></param>
 public void setupRotationModule(SSTUAnimateRotation module)
 {
     //this module was not yet initialized
     if (animationModule == null)
     {
         return;
     }
     rotationModule = module;
     rotationModule.initializeRotationModule(animationModule.animState);
 }
Exemplo n.º 2
0
 public void Start()
 {
     if (!initializedDefualts)
     {
         updateResourceAmounts(inflated? 1.0f : deflationMult);
     }
     if (rotationModule == null)
     {
         rotationModule = part.GetComponent <SSTUAnimateRotation>();
         if (rotationModule != null)
         {
             setupRotationModule(rotationModule);
         }
     }
     initializedDefualts = true;
 }