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