import { _decorator, Component, Label, Node, Sprite, UIOpacity, UITransform } from 'cc';
const { ccclass, property } = _decorator;

@ccclass('wait_view')
export class wait_view extends Component {
    private opacity:number = 0;
    @property(Node) img_mask:Node;
    @property(Node) lab_text:Node;
    public  showView(opacity:number,text:string=""){
        this.img_mask.getComponent(UIOpacity).opacity = opacity;
        // this.lab_text.getComponent(Label).string = text;
    }
}


