12345678910111213141516171819 |
- const {ccclass, property} = cc._decorator;
- @ccclass
- export default class loadingView extends cc.Component {
- @property(cc.ProgressBar)
- progress: cc.ProgressBar = null;
-
- UpdateProgress(percent:number){
- this.progress.progress = percent;
- }
- public ShowProgress(){
- this.node.active = true;
- this.progress.node.active = true;
- this.progress.progress = 0;
- }
- }
|