const {ccclass, property} = cc._decorator;

@ccclass
export default class NewClass extends cc.Component {

    @property(cc.Node)
    choose:cc.Node;
    @property(cc.Label)
    txt:cc.Label;

    onLoad () {
        
    }

    start () {

    }

    initView(str: string){
        this.txt.string = str;
        this.node.active = true;
    }

    onBtnClick(){
        cc.find("Canvas").getComponent("czh_test_001").chooseQuestion(this.txt.string, this.node.convertToWorldSpaceAR(cc.v2(0,0)));
        this.node.active = false;
    }

    // update (dt) {}
}
