/// <summary> /// Play an audio clip once using the global music volume as a multiplier /// </summary> /// <param name="source">AudioSource</param> /// <param name="clip">Clip</param> /// <param name="volumeScale">Additional volume scale</param> public static void PlayOneShotMusicManaged(this AudioSource source, AudioClip clip, float volumeScale) { SoundManager.PlayOneShotMusic(source, clip, volumeScale); }
/// <summary> /// Play an audio clip once using the global music volume as a multiplier /// </summary> /// <param name="source">AudioSource</param> /// <param name="clip">Clip</param> public static void PlayOneShotMusicManaged(this AudioSource source, AudioClip clip) { SoundManager.PlayOneShotMusic(source, clip, 1.0f); }