mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Add audio track property
This commit is contained in:
parent
b5ed5cddc6
commit
d80305b464
@ -27,6 +27,7 @@ namespace NewHorizons.Builder.Props
|
||||
var owAudioSource = go.AddComponent<OWAudioSource>();
|
||||
owAudioSource._audioSource = audioSource;
|
||||
owAudioSource.loop = true;
|
||||
owAudioSource.SetTrack(info.track);
|
||||
AudioUtilities.SetAudioClip(owAudioSource, info.audio, mod);
|
||||
|
||||
var audioVolume = go.AddComponent<AudioVolume>();
|
||||
|
||||
5
NewHorizons/External/Modules/PropModule.cs
vendored
5
NewHorizons/External/Modules/PropModule.cs
vendored
@ -741,6 +741,11 @@ namespace NewHorizons.External.Modules
|
||||
/// The radius of this audio volume
|
||||
/// </summary>
|
||||
public string audio;
|
||||
|
||||
/// <summary>
|
||||
/// The audio track of this audio volume
|
||||
/// </summary>
|
||||
public OWAudioMixer.TrackName track = OWAudioMixer.TrackName.Environment;
|
||||
}
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user