Commit 6ed5c212 authored by liujiangnan's avatar liujiangnan

feat: 调试模式

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