You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
29 lines
609 B
29 lines
609 B
import { _decorator, Component, Node } from 'cc';
|
|
const { ccclass, property } = _decorator;
|
|
|
|
@ccclass('AudioManager')
|
|
export class AudioManager extends Component {
|
|
|
|
playMusic(name: string): number;
|
|
playMusic(name: string, loop: boolean): number;
|
|
playMusic(name: string, path: string): number;
|
|
playMusic(name: string, path: string, bundle: string): number;
|
|
playMusic(name: string, path?: string | boolean, bundle?: string, loop?): number {
|
|
|
|
return 0
|
|
}
|
|
|
|
protected onLoad(): void {
|
|
|
|
}
|
|
|
|
protected onEnable(): void {
|
|
|
|
}
|
|
|
|
protected onDisable(): void {
|
|
|
|
}
|
|
}
|
|
|
|
|
|
|