|
Simple Poker Template 0.0.1
|
Singleton class for managing game sounds, including music and effects. More...
Public Types | |
| enum | AUDIO_OUTPUT { MUSIC , EFFECT } |
Public Member Functions | |
| void | SetVolume (float volume, AUDIO_OUTPUT output) |
| void | PlayMusic (AudioClip audioClip, AUDIO_OUTPUT output=AUDIO_OUTPUT.MUSIC, float pitch=NORMAL_PITCH, bool loop=true) |
| void | PlayOneShotSong (AudioClip audioClip, AUDIO_OUTPUT output=AUDIO_OUTPUT.EFFECT, float pitch=NORMAL_PITCH, bool loop=false) |
| void | PlayOneShotSong_RandomPitch (AudioClip audioClip, AUDIO_OUTPUT output=AUDIO_OUTPUT.EFFECT, float minPitch=MIN_PITCH, float maxPitch=MAX_PITCH, bool loop=false) |
| void | PlayEffectSong_GroupAudioSource (AudioClip audioClip, float pitch=NORMAL_PITCH, bool loop=false) |
| void | PlayEffectSong_GroupAudioSource_RandomPitch (AudioClip audioClip, float minPitch=MIN_PITCH, float maxPitch=MAX_PITCH, bool loop=false) |
| void | Mute (bool value, AUDIO_OUTPUT output) |
| void | MuteAll (bool value) |
| void | Stop (AUDIO_OUTPUT output) |
| void | StopAll () |
| void | MusicFadeIn (float duration=1) |
| void | MusicFadeIn (System.Action callback, float duration=1) |
| void | MusicFadeOut (float duration=1) |
| void | MusicFadeOut (System.Action callback, float duration=1) |
Public Attributes | |
| string | ID |
Protected Member Functions | |
| override void | Awake () |
Protected Member Functions inherited from SimplePoker.Singleton< SoundManager > | |
| override void | Awake () |
Singleton class for managing game sounds, including music and effects.
|
protected |
| void SimplePoker.Audio.SoundManager.MusicFadeIn | ( | float | duration = 1 | ) |
| void SimplePoker.Audio.SoundManager.MusicFadeIn | ( | System::Action | callback, |
| float | duration = 1 ) |
| void SimplePoker.Audio.SoundManager.MusicFadeOut | ( | float | duration = 1 | ) |
| void SimplePoker.Audio.SoundManager.MusicFadeOut | ( | System::Action | callback, |
| float | duration = 1 ) |
| void SimplePoker.Audio.SoundManager.Mute | ( | bool | value, |
| AUDIO_OUTPUT | output ) |
| void SimplePoker.Audio.SoundManager.MuteAll | ( | bool | value | ) |
| void SimplePoker.Audio.SoundManager.PlayEffectSong_GroupAudioSource | ( | AudioClip | audioClip, |
| float | pitch = NORMAL_PITCH, | ||
| bool | loop = false ) |
| void SimplePoker.Audio.SoundManager.PlayEffectSong_GroupAudioSource_RandomPitch | ( | AudioClip | audioClip, |
| float | minPitch = MIN_PITCH, | ||
| float | maxPitch = MAX_PITCH, | ||
| bool | loop = false ) |
| void SimplePoker.Audio.SoundManager.PlayMusic | ( | AudioClip | audioClip, |
| AUDIO_OUTPUT | output = AUDIO_OUTPUT::MUSIC, | ||
| float | pitch = NORMAL_PITCH, | ||
| bool | loop = true ) |
| void SimplePoker.Audio.SoundManager.PlayOneShotSong | ( | AudioClip | audioClip, |
| AUDIO_OUTPUT | output = AUDIO_OUTPUT::EFFECT, | ||
| float | pitch = NORMAL_PITCH, | ||
| bool | loop = false ) |
| void SimplePoker.Audio.SoundManager.PlayOneShotSong_RandomPitch | ( | AudioClip | audioClip, |
| AUDIO_OUTPUT | output = AUDIO_OUTPUT::EFFECT, | ||
| float | minPitch = MIN_PITCH, | ||
| float | maxPitch = MAX_PITCH, | ||
| bool | loop = false ) |
| void SimplePoker.Audio.SoundManager.SetVolume | ( | float | volume, |
| AUDIO_OUTPUT | output ) |
| void SimplePoker.Audio.SoundManager.Stop | ( | AUDIO_OUTPUT | output | ) |
| void SimplePoker.Audio.SoundManager.StopAll | ( | ) |
| string SimplePoker.Audio.SoundManager.ID |