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); } } }
public void SendPropellerSpeed(float speed) { FloatData.Update <MyRotationAnimator>(base.GetRenderObjectID(), speed); }