Метод | Описание | |
---|---|---|
LoadAllSounds ( ) : void |
Loads all sounds.
|
|
Play ( Audio sound, bool loop = false ) : void |
Plays the sound.
|
|
Play ( Audio music, float volume = MUSIC_VOLUME ) : void |
Plays the specified music.
|
|
PlayRandom ( ) : void | ||
Update ( System.TimeSpan gameTime ) : void |
Updates the specified game time.
|
Метод | Описание | |
---|---|---|
Initialize ( ) : void |
Initializes a new instance of the SoundsManager class.
|
|
Terminate ( ) : void |
Terminates this instance.
|
Метод | Описание | |
---|---|---|
GetSoundOrMusicPath ( |
Resolve paths
|
|
InternalPlaySound ( |
Internals the play sound.
|
|
Load ( |
Loads the sound.
|
|
SearchMusicAndSounds ( |
public Play ( Audio sound, bool loop = false ) : void | ||
sound | Audio | The sound. |
loop | bool | if set to |
Результат | void |
public Play ( Audio music, float volume = MUSIC_VOLUME ) : void | ||
music | Audio | The music. |
volume | float | |
Результат | void |
public Update ( System.TimeSpan gameTime ) : void | ||
gameTime | System.TimeSpan | The game time. |
Результат | void |