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!");
        }
    }
Example #2
0
 public void setVolume(float value)
 {
     MathUtility.clamp(ref value, 0.0f, 1.0f);
     mUIVolumeScrollBar.setSliderValue(value);
 }
Example #3
0
 public void setProgress(float progress)
 {
     mProgress.setSliderValue(progress);
 }