예제 #1
0
 /// <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);
 }
예제 #2
0
 /// <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);
 }