const {ccclass, property} = cc._decorator;

@ccclass
export default class Helloworld extends cc.Component {

    @property(cc.Label)
    label: cc.Label = null;

    @property
    text: string = 'hello';
    // @property(cc.JsonAsset)
    // levelDtJsonAsset:cc.JsonAsset = null;

    start () {
        // init logic
        //this.label.string = this.text;
        //console.log(this.levelDtJsonAsset.json);
        cc.resources.load('ConfigDt/LevelDt',(err, asset)=>{
            console.log((<cc.JsonAsset>asset).json);
        })
    }
}
