// Depth Switcher public void DepthAuto(float depth) { depth_manual.gameObject.SetActive(false); socket.SetDepthMotorsSpeed(0, 0); socket.SetAutoDepth(true, depth); depthmode = DepthMode.Auto; }
public void SliderChanged() { socket.SetDepthMotorsSpeed((int)slider.value, (int)slider.value); }