Method | Description | |
---|---|---|
Awake ( ) : void | ||
pauseBackgroundMusic ( ) : void | ||
playBackgroundMusic ( string filePath, bool loop = true ) : void | ||
playEffect ( string filePath ) : int | ||
preloadBackgroundMusic ( string filePath ) : void | ||
resumeBackgroundMusic ( ) : void | ||
stopBackgroundMusic ( ) : void | ||
stopEffect ( int soundId ) : void |
Method | Description | |
---|---|---|
getAudioClip ( string filePath ) : |
||
playAudio ( |
public playBackgroundMusic ( string filePath, bool loop = true ) : void | ||
filePath | string | |
loop | bool | |
return | void |
public preloadBackgroundMusic ( string filePath ) : void | ||
filePath | string | |
return | void |