// Learn cc.Class:
//  - https://docs.cocos.com/creator/manual/en/scripting/class.html
// Learn Attribute:
//  - https://docs.cocos.com/creator/manual/en/scripting/reference/attributes.html
// Learn life-cycle callbacks:
//  - https://docs.cocos.com/creator/manual/en/scripting/life-cycle-callbacks.html

cc.Class({
    extends: cc.Component,

    properties: {
        DailyConversations: {
            default: null,
            type: cc.AudioClip
        },
        ExerciseTime: {
            default: null,
            type: cc.AudioClip
        },
        TraceAndRead: {
            default: null,
            type: cc.AudioClip
        },
        LetsBlend: {
            default: null,
            type: cc.AudioClip
        },
        LetsReview: {
            default: null,
            type: cc.AudioClip
        },
        LettersInLife: {
            default: null,
            type: cc.AudioClip
        },
        LookAndSay: {
            default: null,
            type: cc.AudioClip
        },
        Phonics: {
            default: null,
            type: cc.AudioClip
        },
        ReadClosely: {
            default: null,
            type: cc.AudioClip
        },
        SightWords: {
            default: null,
            type: cc.AudioClip
        },
        StoryTime: {
            default: null,
            type: cc.AudioClip
        },
        Topic: {
            default: null,
            type: cc.AudioClip
        },
        WarmUp: {
            default: null,
            type: cc.AudioClip
        },
    },

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {},

    start () {

    },

    // update (dt) {},

    playEffect(name, loop = false, volume = 1) {
        cc.audioEngine.play(this[name], loop, volume);
    }
});
