Пример #1
0
 public void UpdateFlameProperties(bool enabled, float strength)
 {
     if ((this.m_thrust.CubeGrid.Physics != null) && this.m_flameAnimatorInitialized)
     {
         bool flag = false;
         if (this.m_strength != strength)
         {
             flag            = true;
             this.m_strength = strength;
         }
         if (this.m_flamesEnabled != enabled)
         {
             flag = true;
             this.m_flamesEnabled = enabled;
         }
         if (flag)
         {
             FloatData.Update <MyThrustFlameAnimator>(base.GetRenderObjectID(), this.m_flamesEnabled ? this.m_strength : -1f);
         }
     }
 }
Пример #2
0
 public void SendPropellerSpeed(float speed)
 {
     FloatData.Update <MyRotationAnimator>(base.GetRenderObjectID(), speed);
 }