protected override void Init()
 {
   if (this.m_X != null)
     return;
   if (ClampVelocityModuleUI.s_Texts == null)
     ClampVelocityModuleUI.s_Texts = new ClampVelocityModuleUI.Texts();
   this.m_X = new SerializedMinMaxCurve((ModuleUI) this, ClampVelocityModuleUI.s_Texts.x, "x", ModuleUI.kUseSignedRange);
   this.m_Y = new SerializedMinMaxCurve((ModuleUI) this, ClampVelocityModuleUI.s_Texts.y, "y", ModuleUI.kUseSignedRange);
   this.m_Z = new SerializedMinMaxCurve((ModuleUI) this, ClampVelocityModuleUI.s_Texts.z, "z", ModuleUI.kUseSignedRange);
   this.m_Magnitude = new SerializedMinMaxCurve((ModuleUI) this, ClampVelocityModuleUI.s_Texts.magnitude, "magnitude");
   this.m_SeparateAxes = this.GetProperty("separateAxis");
   this.m_InWorldSpace = this.GetProperty("inWorldSpace");
   this.m_Dampen = this.GetProperty("dampen");
 }
Exemple #2
0
 protected override void Init()
 {
     if (this.m_X == null)
     {
         if (ClampVelocityModuleUI.s_Texts == null)
         {
             ClampVelocityModuleUI.s_Texts = new ClampVelocityModuleUI.Texts();
         }
         this.m_X            = new SerializedMinMaxCurve(this, ClampVelocityModuleUI.s_Texts.x, "x");
         this.m_Y            = new SerializedMinMaxCurve(this, ClampVelocityModuleUI.s_Texts.y, "y");
         this.m_Z            = new SerializedMinMaxCurve(this, ClampVelocityModuleUI.s_Texts.z, "z");
         this.m_Magnitude    = new SerializedMinMaxCurve(this, ClampVelocityModuleUI.s_Texts.magnitude, "magnitude");
         this.m_SeparateAxes = base.GetProperty("separateAxis");
         this.m_InWorldSpace = base.GetProperty("inWorldSpace");
         this.m_Dampen       = base.GetProperty("dampen");
     }
 }
 protected override void Init()
 {
     if (this.m_X != null)
     {
         return;
     }
     if (ClampVelocityModuleUI.s_Texts == null)
     {
         ClampVelocityModuleUI.s_Texts = new ClampVelocityModuleUI.Texts();
     }
     this.m_X            = new SerializedMinMaxCurve((ModuleUI)this, ClampVelocityModuleUI.s_Texts.x, "x", ModuleUI.kUseSignedRange);
     this.m_Y            = new SerializedMinMaxCurve((ModuleUI)this, ClampVelocityModuleUI.s_Texts.y, "y", ModuleUI.kUseSignedRange);
     this.m_Z            = new SerializedMinMaxCurve((ModuleUI)this, ClampVelocityModuleUI.s_Texts.z, "z", ModuleUI.kUseSignedRange);
     this.m_Magnitude    = new SerializedMinMaxCurve((ModuleUI)this, ClampVelocityModuleUI.s_Texts.magnitude, "magnitude");
     this.m_SeparateAxes = this.GetProperty("separateAxis");
     this.m_InWorldSpace = this.GetProperty("inWorldSpace");
     this.m_Dampen       = this.GetProperty("dampen");
 }