void Update() { if (_source != _prevSource) { SwitchSource(); } if (_needsReset) { _lastInputValue = _source.GetKnob(_channel, _knobNumber, 0); DoKnobUpdate(_lastInputValue); _needsReset = false; } if (!_isRelative && _interpolator.enabled) { _valueEvent.Invoke(_floatValue.Step()); } }
void ResetValue() { _lastInputValue = _source.GetKnob(_channel, _knobNumber, 0); _floatValue.targetValue = _responseCurve.Evaluate(_lastInputValue); }