This persistent singleton handles sound playing
More...
This persistent singleton handles sound playing
◆ GetBackgroundMusic()
virtual AudioSource MoreMountains.InfiniteRunnerEngine.SoundManager.GetBackgroundMusic |
( |
| ) |
|
|
virtual |
◆ LoadSoundSettings()
virtual void MoreMountains.InfiniteRunnerEngine.SoundManager.LoadSoundSettings |
( |
| ) |
|
|
protectedvirtual |
◆ MusicOff()
virtual void MoreMountains.InfiniteRunnerEngine.SoundManager.MusicOff |
( |
| ) |
|
|
virtual |
◆ MusicOn()
virtual void MoreMountains.InfiniteRunnerEngine.SoundManager.MusicOn |
( |
| ) |
|
|
virtual |
◆ MuteAllSfx()
virtual void MoreMountains.InfiniteRunnerEngine.SoundManager.MuteAllSfx |
( |
| ) |
|
|
protectedvirtual |
◆ OnDisable()
virtual void MoreMountains.InfiniteRunnerEngine.SoundManager.OnDisable |
( |
| ) |
|
|
protectedvirtual |
◆ OnEnable()
virtual void MoreMountains.InfiniteRunnerEngine.SoundManager.OnEnable |
( |
| ) |
|
|
protectedvirtual |
◆ OnMMSfxEvent()
virtual void MoreMountains.InfiniteRunnerEngine.SoundManager.OnMMSfxEvent |
( |
AudioClip |
clipToPlay, |
|
|
AudioMixerGroup |
audioGroup = null , |
|
|
float |
volume = 1f , |
|
|
float |
pitch = 1f |
|
) |
| |
|
virtual |
◆ PlayBackgroundMusic()
virtual void MoreMountains.InfiniteRunnerEngine.SoundManager.PlayBackgroundMusic |
( |
AudioSource |
Music | ) |
|
|
virtual |
Plays a background music. Only one background music can be active at a time.
- Parameters
-
◆ PlaySound()
virtual AudioSource MoreMountains.InfiniteRunnerEngine.SoundManager.PlaySound |
( |
AudioClip |
sfx, |
|
|
Vector3 |
location, |
|
|
bool |
loop = false |
|
) |
| |
|
virtual |
Plays a sound
- Returns
- An audiosource
- Parameters
-
sfx | The sound clip you want to play. |
location | The location of the sound. |
loop | If set to true, the sound will loop. |
◆ ResetSoundSettings()
virtual void MoreMountains.InfiniteRunnerEngine.SoundManager.ResetSoundSettings |
( |
| ) |
|
|
protectedvirtual |
◆ SaveSoundSettings()
virtual void MoreMountains.InfiniteRunnerEngine.SoundManager.SaveSoundSettings |
( |
| ) |
|
|
protectedvirtual |
◆ SetMusic()
virtual void MoreMountains.InfiniteRunnerEngine.SoundManager.SetMusic |
( |
bool |
status | ) |
|
|
protectedvirtual |
Sets the music to the specified setting, and stops background music if there's one playing
- Parameters
-
◆ SetSfx()
virtual void MoreMountains.InfiniteRunnerEngine.SoundManager.SetSfx |
( |
bool |
status | ) |
|
|
protectedvirtual |
◆ SfxOff()
virtual void MoreMountains.InfiniteRunnerEngine.SoundManager.SfxOff |
( |
| ) |
|
|
virtual |
◆ SfxOn()
virtual void MoreMountains.InfiniteRunnerEngine.SoundManager.SfxOn |
( |
| ) |
|
|
virtual |
◆ StopBackgroundMusic()
virtual void MoreMountains.InfiniteRunnerEngine.SoundManager.StopBackgroundMusic |
( |
| ) |
|
|
virtual |
Stops the background music, if there's one
◆ StopLoopingSound()
virtual void MoreMountains.InfiniteRunnerEngine.SoundManager.StopLoopingSound |
( |
AudioSource |
source | ) |
|
|
virtual |
Stops the looping sounds if there are any
- Parameters
-
◆ ToggleMusic()
virtual void MoreMountains.InfiniteRunnerEngine.SoundManager.ToggleMusic |
( |
| ) |
|
|
virtual |
◆ ToggleSfx()
virtual void MoreMountains.InfiniteRunnerEngine.SoundManager.ToggleSfx |
( |
| ) |
|
|
virtual |
◆ UnmuteAllSfx()
virtual void MoreMountains.InfiniteRunnerEngine.SoundManager.UnmuteAllSfx |
( |
| ) |
|
|
protectedvirtual |
◆ _backgroundMusic
AudioSource MoreMountains.InfiniteRunnerEngine.SoundManager._backgroundMusic |
|
protected |
◆ _loopingSounds
List<AudioSource> MoreMountains.InfiniteRunnerEngine.SoundManager._loopingSounds |
|
protected |
◆ _saveFileName
const string MoreMountains.InfiniteRunnerEngine.SoundManager._saveFileName = "sound.settings" |
|
staticprotected |
◆ _saveFolderName
const string MoreMountains.InfiniteRunnerEngine.SoundManager._saveFolderName = "InfiniteRunnerEngine/" |
|
staticprotected |
◆ MusicToggleButton
bool MoreMountains.InfiniteRunnerEngine.SoundManager.MusicToggleButton |
◆ MusicVolume
float MoreMountains.InfiniteRunnerEngine.SoundManager.MusicVolume =0.3f |
true if the music is enabled
the music volume
◆ MuteSfxOnPause
bool MoreMountains.InfiniteRunnerEngine.SoundManager.MuteSfxOnPause = true |
◆ Settings
SoundSettings MoreMountains.InfiniteRunnerEngine.SoundManager.Settings |
◆ SfxToggleButton
bool MoreMountains.InfiniteRunnerEngine.SoundManager.SfxToggleButton |
◆ SfxVolume
float MoreMountains.InfiniteRunnerEngine.SoundManager.SfxVolume =1f |
true if the sound fx are enabled
the sound fx volume
The documentation for this class was generated from the following file: