메소드 | 설명 | |
---|---|---|
IsAnySoundPlaying ( ) : bool |
Checks if any sound is playing.
|
|
IsMusicPlaying ( ) : bool |
Checks if music is playing.
|
|
IsSoundPlaying ( string assetName ) : bool |
Checks if sound is playing.
|
|
LoadMusic ( string assetName ) : void |
Load the music.
|
|
LoadSound ( string assetName ) : void |
Load a sound to the current
|
|
PlayMusic ( bool force = false ) : void |
Play a background music.
|
|
PlaySound ( string assetName, bool allowOverlap = false, float volume = 1 ) : void |
Play the sound.
|
|
StopAllSounds ( ) : void |
Stop all sounds playing.
|
|
StopMusic ( ) : void |
Stop music playing.
|
|
StopSound ( string assetName ) : void |
Stop a sound playing.
|
메소드 | 설명 | |
---|---|---|
SoundManager ( ) : System.Collections.Generic |
public static IsSoundPlaying ( string assetName ) : bool | ||
assetName | string | Sound asset name. |
리턴 | bool |
public static LoadMusic ( string assetName ) : void | ||
assetName | string | Music asset name. |
리턴 | void |
public static LoadSound ( string assetName ) : void | ||
assetName | string | Sound asset name. |
리턴 | void |
public static PlaySound ( string assetName, bool allowOverlap = false, float volume = 1 ) : void | ||
assetName | string | Sound effect's asset name. |
allowOverlap | bool | Whether many instances of the same sound can be played simultaneously or not. |
volume | float | Volume of the sample (0..1). |
리턴 | void |
public static StopSound ( string assetName ) : void | ||
assetName | string | Sound asset name. |
리턴 | void |