File tree Expand file tree Collapse file tree 2 files changed +1
-3
lines changed
VisualPinball.Unity.Editor/Sound
VisualPinball.Unity/Sound Expand file tree Collapse file tree 2 files changed +1
-3
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,6 @@ private bool AllTargetsSupportLoopingSoundAssets()
96
96
97
97
protected void InfiniteLoopHelpBox ( VisualElement container )
98
98
{
99
- var soundAssetProp = serializedObject . FindProperty ( "_soundAsset" ) ;
100
99
var helpBox = new HelpBox ( "The assigned sound asset loops, but this component " +
101
100
"provides no mechanism to stop it or is not configured to do so. Either assign" +
102
101
" a sound asset that does not loop or (if possible) configure this component to" +
Original file line number Diff line number Diff line change @@ -75,8 +75,7 @@ private enum SelectionMethod
75
75
76
76
public void ConfigureAudioSource ( AudioSource audioSource , float volume = 1 )
77
77
{
78
- audioSource . volume = Random . Range ( _volumeRange . x , _volumeRange . y ) ;
79
- audioSource . volume *= volume ;
78
+ audioSource . volume = volume * Random . Range ( _volumeRange . x , _volumeRange . y ) ;
80
79
audioSource . pitch = Random . Range ( _pitchRange . x , _pitchRange . y ) ;
81
80
audioSource . loop = _loop ;
82
81
audioSource . clip = GetClip ( ) ;
You can’t perform that action at this time.
0 commit comments