Commit 6ed5c212 authored by liujiangnan's avatar liujiangnan

feat: 调试模式

parent 6ea20421
......@@ -85,6 +85,10 @@ cc.Class({
getData((data) => {
console.log('data:', data);
this.data = data || this.getDefaultData();
const isDebug = cc.sys.localStorage.getItem('isDebug');
this.data.isDebug = this.data.isDebug || isDebug;
this.preloadItem()
})
},
......@@ -300,8 +304,6 @@ cc.Class({
loadEnd() {
console.log(' in loadEnd');
// this.data.isDebug = true;
this.initData();
this.initView();
// this.initMusic();
......
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