// Learn TypeScript:
//  - https://docs.cocos.com/creator/manual/en/scripting/typescript.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

const {ccclass, property} = cc._decorator;

@ccclass
export default class candle extends cc.Component {

    @property(cc.Label)
    label: cc.Label = null;
    @property(dragonBones.ArmatureDisplay)
    dragon1 : dragonBones.ArmatureDisplay=null;
    @property(dragonBones.ArmatureDisplay)
    dragon2 : dragonBones.ArmatureDisplay=null;
    @property(dragonBones.ArmatureDisplay)
    dragon3 : dragonBones.ArmatureDisplay=null;
    @property
    text: string = 'hello';
   

    // LIFE-CYCLE CALLBACKS:

    // onLoad () {}

    start () {
        console.log("newAnimation======")
        this.dragon1.playAnimation("newAnimation",-1)
        this.dragon2.playAnimation("newAnimation",-1)
        this.dragon3.playAnimation("newAnimation",-1)

    }

    // update (dt) {}
}
