cocos中的预制体如何控制其中的子元素?

在预制体的脚本中已经设置了this,发现根本无法传递文件 声明的对象及数据。如下图

微信截图_20231107145710

代码片段

    //增加 每次1000
protected add_button(){
    let that = this;
    console.log(that.digital_card);
    let that_money = 1000;
    let the_money = that_money+1000;
    console.log("增加",the_money);
    that.digital_card.string = the_money.toString();
}

//减少 每次1000
protected red_button(){
    let that = this;
    console.log(that.digital_card);
    let that_money = 1000;
    let the_money = 0;
    if(that_money<=0){
        the_money = 0;
    }else{
        the_money = that_money-1000;
    }
    console.log('减少',the_money)
    that.digital_card.string = the_money.toString();
}

在下一帧就能用了