|
Flying Piggy 2D Runner Kit
1.0
Complete 2D runner template for Unity
|
Public Types | |
| enum | State { State.MUTE, State.SOUND } |
Public Member Functions | |
| void | SoundOff () |
| void | SoundOn () |
Public Attributes | |
| List< AudioClip > | playlist |
| float | musicVolume = 0.8f |
| float | soundVolume = 1f |
| bool | destroyOnLoad = true |
Properties | |
| static SoundSettings | Instance [get] |
| State | SoundState [get] |
Holds background music playlist and determines if sound is muted or audible.
| enum SoundSettings.State |
| void SoundSettings.SoundOff | ( | ) |
Set all sounds off
| void SoundSettings.SoundOn | ( | ) |
Set all sounds on
| bool SoundSettings.destroyOnLoad = true |
| float SoundSettings.musicVolume = 0.8f |
| List<AudioClip> SoundSettings.playlist |
| float SoundSettings.soundVolume = 1f |
|
staticget |
Get an instance of SoundSettings
|
get |
Get current state of the sound