Browse Source

Fixed naming issues in ambience audio.

master
Hector Castelli Zacharias 7 years ago
parent
commit
f0813d4aae
  1. 4
      Assets/Fungus/Scripts/Commands/PlayAmbienceSound.cs
  2. 2
      Assets/Fungus/Scripts/Components/MusicManager.cs

4
Assets/Fungus/Scripts/Commands/PlayAmbienceSound.cs

@ -9,10 +9,10 @@ namespace Fungus
/// Plays a once-off sound effect. Multiple sound effects can be played at the same time.
/// </summary>
[CommandInfo("Audio",
"Play Ambience Sound",
"Play Ambiance Sound",
"Plays a once-off sound effect. Multiple sound effects can be played at the same time.")]
[AddComponentMenu("")]
public class PlayAmbienceSound : Command
public class PlayAmbianceSound : Command
{
[Tooltip("Sound effect clip to play")]
[SerializeField]

2
Assets/Fungus/Scripts/Components/MusicManager.cs

@ -80,7 +80,7 @@ namespace Fungus
/// <param name="soundClip">The sound effect clip to play.</param>
/// <param name="loop">If the audioclip should loop or not.</param>
/// <param name="volume">The volume level of the sound effect.</param>
public virtual void PlayAmbienceSound(AudioClip soundClip, bool loop, float volume)
public virtual void PlayAmbianceSound(AudioClip soundClip, bool loop, float volume)
{
audioSource.loop = loop;
audioSource.clip = soundClip;

Loading…
Cancel
Save