Метод | Описание | |
---|---|---|
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 |
Метод | Описание | |
---|---|---|
getAudioClip ( string filePath ) : |
||
playAudio ( |
public playBackgroundMusic ( string filePath, bool loop = true ) : void | ||
filePath | string | |
loop | bool | |
Результат | void |
public playEffect ( string filePath ) : int | ||
filePath | string | |
Результат | int |
public preloadBackgroundMusic ( string filePath ) : void | ||
filePath | string | |
Результат | void |