Commit 1f637066 authored by 范雪寒's avatar 范雪寒

feat: 打印sceneName

parent bc1d5ed6
......@@ -157,9 +157,12 @@ cc.Class({
updateProcessBar() {
const label = cc.find("middleLayer/ui/ProgressLabel").getComponent(cc.Label);
label.string = `正在加载:${this.loadedCount} / ${this.preloadCount}`;
const loadingProgress = cc.find('middleLayer/ui/loadingProgress');
if (this.loadedCount > this.preloadCount * 0.99) {
cc.find("middleLayer/ui/ProgressLabel").active = false;
loadingProgress.active = false;
}
loadingProgress.getComponent(cc.ProgressBar).progress = this.loadedCount / this.preloadCount;
},
asyncDelayLog(str) {
......@@ -390,6 +393,7 @@ cc.Class({
this.hideWaitingLetters();
cc.audioEngine.stopAll();
cc.director.runScene(scene, null, () => {
console.log('sceneName = ' + sceneName);
const Canvas = cc.find('Canvas');
const middleLayer = cc.find('middleLayer');
middleLayer.scale = Canvas.width / middleLayer.width;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment