VJBaseModifier._GetValue C# (CSharp) Метод

_GetValue() приватный Метод

private _GetValue ( float &_lastValue ) : float
_lastValue float
Результат float
    private float _GetValue(ref float _lastValue)
    {
        float v = (isModifierEnabled) ? ( _GetRawValue() ) * _GetBoostValue() : 0.0f;

        if( negative ) {
            v = -v;
        }

        if( limitValueMinMax ) {
            v = Mathf.Clamp(v, valueMin, valueMax);
        }

        if( rest ) {
            if(negative) {
                v = Mathf.Min(_lastValue * restStrength, v);
            } else {
                v = Mathf.Max(_lastValue * restStrength, v);
            }
        }

        _lastValue = v;

        lastReturnedValue = v + valueBaseOffset;
        return lastReturnedValue;
    }