Commit ade67de2 authored by liujiangnan's avatar liujiangnan

debug

parent 9ee3a957
...@@ -333,13 +333,15 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -333,13 +333,15 @@ export default class SceneComponent extends MyCocosSceneComponent {
if (!bk_count) { if (!bk_count) {
bk.attr({bk_count: 1}); bk.attr({bk_count: 1});
setTimeout(() => { setTimeout(() => {
if (bk_count == 6) { const real = cc.find(`Canvas/bg/bg_oxford`);
if (real["bk_count"] == 6) {
// 切换一个纸书调试 // 切换一个纸书调试
const isDebug = cc.sys.localStorage.getItem('isDebug'); const isDebug = cc.sys.localStorage.getItem('isDebug');
cc.sys.localStorage.setItem('isDebug', !isDebug); cc.sys.localStorage.setItem('isDebug', !isDebug);
this.middleLayer.showTips(`已切换为 ${isDebug?'正常':'Debug'} 模式`); this.middleLayer.showTips(`已切换为 ${isDebug?'正常':'Debug'} 模式`);
} }
bk.attr({bk_count: null}); this.middleLayer.showTips(`时间到`);
real.attr({bk_count: null});
}, 2000); }, 2000);
} else if (bk_count>10){ } else if (bk_count>10){
window["courseware"]?.changeHost(); window["courseware"]?.changeHost();
......
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