private object SetSpectrumThreshold(float value) { if (value < 0.0f) { value = 0.0f; } else if (value > 100.0f) { value = 100.0f; } value = value / 100; SpectrumThreshold = value; PlayerPrefHelper.SetSpectrumThreshold(value); _spectrumThresholdData.text = ((int)(value * 100)).ToString(); return(true); }