Sadly, AudioSource is a sealed class, otherwise it'd be easier to just make an alternative ORK audio source, i.e. having this in one component :)
Please consider rating/reviewing my products on the Asset Store (hopefully positively), as that helps tremendously with getting found. If you're enjoying my products, updates and support, please consider supporting me on patreon.com!
public class ORKAudioSource : MonoBehaviour
{
protected AudioSource source;
protected void Update()
{
if(this.source != null)
{
this.source.volume = ORK.Game.SoundVolume;
}
}
}
Sadly, AudioSource is a sealed class, otherwise it'd be easier to just make an alternative ORK audio source, i.e. having this in one component :)
If you're enjoying my products, updates and support, please consider supporting me on patreon.com!