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W,CAAC;qDACU;IAGnC;QADC,QAAQ,CAAC,EAAE,CAAC,KAAK,CAAC;uDACY;IALd,YAAY;QADhC,OAAO;OACa,YAAY,CAwBhC;IAAD,mBAAC;CAxBD,AAwBC,CAxByC,EAAE,CAAC,SAAS,GAwBrD;kBAxBoB,YAAY","file":"","sourceRoot":"/","sourcesContent":["const { ccclass, property } = cc._decorator;\n\n@ccclass\nexport default class LoadingScene extends cc.Component {\n @property(cc.ProgressBar)\n progressBar: cc.ProgressBar = null; // <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>\n\n @property(cc.Label)\n progressLabel: cc.Label = null; // <20><><EFBFBD><EFBFBD><EFBFBD>ı<EFBFBD><C4B1><EFBFBD><EFBFBD>\n\n onLoad() {\n setTimeout(() => {\n cc.director.preloadScene(\"StartUI\", this.updateProgress.bind(this), this.switchScene.bind(this));\n cc.director.preloadScene(\"game\", this.updateProgress.bind(this), this.onLoadComplete.bind(this));\n },2000);\n }\n\n updateProgress(completedCount: number, totalCount: number, item: any) {\n let progress = completedCount / totalCount;\n this.progressBar.progress = progress;\n this.progressLabel.string = Math.floor(progress * 100) + \"%\";\n }\n\n switchScene() {\n cc.director.loadScene(\"StartUI\");\n }\n onLoadComplete() { }\n}"]} |