Exemplo 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;
     }
 }
Exemplo 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;
 }
Exemplo 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();
     }
 }