// Learn TypeScript:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/typescript.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/2.4/manual/en/scripting/life-cycle-callbacks.html

const { ccclass, property } = cc._decorator;

@ccclass
export default class BGM extends cc.Component {


    // LIFE-CYCLE CALLBACKS:

    @property(cc.Prefab)
    boli: cc.Prefab = null;

    onLoad() {

        // cc.resources.load('BGGGG', cc.AudioClip, (err, clips: cc.AudioClip) => {
        //     if (err) {
        //         cc.error(err);
        //         return;
        //     }
        //     cc.audioEngine.playMusic(clips, true); // 播放音乐
        // });

    //    cc.audioEngine.playMusic(boli, true); // 播放音乐


    }



    // update (dt) {}
}
