This persistent singleton handles sound playing
More...
This persistent singleton handles sound playing
◆ PlayBackgroundMusic()
virtual void MoreMountains.HighroadEngine.SoundManager.PlayBackgroundMusic |
( |
AudioSource |
Music | ) |
|
|
virtual |
Plays a background music. Only one background music can be active at a time.
- Parameters
-
◆ PlayLoop()
virtual AudioSource MoreMountains.HighroadEngine.SoundManager.PlayLoop |
( |
AudioClip |
Sfx, |
|
|
Vector3 |
Location |
|
) |
| |
|
virtual |
Plays a sound
- Returns
- An audiosource
- Parameters
-
Sfx | The sound clip you want to play. |
Location | The location of the sound. |
Volume | The volume of the sound. |
◆ PlaySound()
virtual AudioSource MoreMountains.HighroadEngine.SoundManager.PlaySound |
( |
AudioClip |
sfx, |
|
|
Vector3 |
location, |
|
|
bool |
shouldDestroyAfterPlay = true |
|
) |
| |
|
virtual |
Plays a sound
- Returns
- An audiosource
- Parameters
-
Sfx | The sound clip you want to play. |
Location | The location of the sound. |
Volume | The volume of the sound. |
◆ StopBackGroundMusic()
virtual void MoreMountains.HighroadEngine.SoundManager.StopBackGroundMusic |
( |
| ) |
|
|
virtual |
Stops the background music.
◆ _backgroundMusic
AudioSource MoreMountains.HighroadEngine.SoundManager._backgroundMusic |
|
protected |
◆ MusicOn
bool MoreMountains.HighroadEngine.SoundManager.MusicOn =true |
true if the music is enabled
◆ MusicVolume
float MoreMountains.HighroadEngine.SoundManager.MusicVolume =0.3f |
◆ SfxOn
bool MoreMountains.HighroadEngine.SoundManager.SfxOn =true |
true if the sound fx are enabled
◆ SfxVolume
float MoreMountains.HighroadEngine.SoundManager.SfxVolume =1f |
The documentation for this class was generated from the following file:
- E:/Github/Store/HighroadEngine/Assets/HighroadEngine/Common/Scripts/Managers/SoundManager.cs