protected override void applyTrembling(float value) { txNGUISlider window = mComponentOwner as txNGUISlider; if (window != null) { float curValue = mStartValue + (mTargetValue - mStartValue) * value; window.setSliderValue(curValue); } else { logError("window is not a Slider Window!"); } }
public void setVolume(float value) { MathUtility.clamp(ref value, 0.0f, 1.0f); mUIVolumeScrollBar.setSliderValue(value); }
public void setProgress(float progress) { mProgress.setSliderValue(progress); }