public void UpdateRolloffDelegate() { switch (rolloffMode) { case AudioRolloffMode.Linear: volumeAdjustmentFunction = GetDistanceAdjustedVolumeLinear; break; case AudioRolloffMode.Logarithmic: volumeAdjustmentFunction = GetDistanceAdjustedVolumeLogarithmic; break; case AudioRolloffMode.Custom: volumeAdjustmentFunction = GetDistanceAdjustedVolumeCustom; break; } }
public void UpdateRolloffDelegate() { switch(rolloffMode) { case AudioRolloffMode.Linear: volumeAdjustmentFunction = GetDistanceAdjustedVolumeLinear; break; case AudioRolloffMode.Logarithmic: volumeAdjustmentFunction = GetDistanceAdjustedVolumeLogarithmic; break; case AudioRolloffMode.Custom: volumeAdjustmentFunction = GetDistanceAdjustedVolumeCustom; break; } }