Esempio n. 1
0
 /// <summary>Detects the water slider component, or adds it if not found on the vessel.</summary>
 void SetupWaterSlider()
 {
     _waterSlider = vessel.rootPart.GetComponent <KFModuleWaterSlider>();
     if (Equals(_waterSlider, null))
     {
         _waterSlider = vessel.rootPart.gameObject.AddComponent <KFModuleWaterSlider>();
         _waterSlider.StartUp();
         _waterSlider.fColliderHeight = -2f;
     }
 }
Esempio n. 2
0
 void SetupWaterSlider()
 {
     if (!isReady || isPaused)
     {
         return;
     }
     if (!isFloatingEnabled)
     {
         return;
     }
     _waterSlider = vessel.rootPart.GetComponent <KFModuleWaterSlider>();
     if (Equals(_waterSlider, null))
     {
         _waterSlider = vessel.rootPart.gameObject.AddComponent <KFModuleWaterSlider>();
         _waterSlider.StartUp();
     }
     isSliderSetup = true;
 }
Esempio n. 3
0
 /// <summary>Detects the water slider component, or adds it if not found on the vessel.</summary>
 void SetupWaterSlider()
 {
     _waterSlider = vessel.rootPart.GetComponent<KFModuleWaterSlider>();
     if (Equals(_waterSlider, null))
     {
         _waterSlider = vessel.rootPart.gameObject.AddComponent<KFModuleWaterSlider>();
         _waterSlider.StartUp();
     }
 }