Method | Description | |
---|---|---|
GetSoundPath ( SoundType sound ) : string |
Gets sound path by its sound type
|
|
Play ( SoundType sound, bool loop = false ) : SoundInstance |
Play a sound and return its instance
|
|
SoundManager ( ) : System |
Method | Description | |
---|---|---|
Initialize ( ) : void |
Initialize sound manager
|
Method | Description | |
---|---|---|
LoadSounds ( ) : void |
Load all sound used in this demo
|
public GetSoundPath ( SoundType sound ) : string | ||
sound | SoundType | |
return | string |
public Play ( SoundType sound, bool loop = false ) : SoundInstance | ||
sound | SoundType | The sound type |
loop | bool | Indicate if the sound must be looped |
return | SoundInstance |