Commit dfd724ac authored by kai's avatar kai

fix: 数据上报

parent d6f6740b
......@@ -52,7 +52,7 @@ cc.Class({
// defaults, set visually when attaching this script to the Canvas
// text: 'Hello, World!'
},
totalCount: 0,
_designSize: null, // 设计分辨率
_frameSize: null, // 屏幕分辨率
_mapScaleMin: null, // 场景中常用缩放(取大值)
......@@ -425,13 +425,7 @@ cc.Class({
}
}
}
const totalCount = this.data.totalCount;
if (totalCount) {
this.data.totalCount ++;
} else {
this.data.totalCount = 1;
}
this.totalCount ++;
},
......@@ -488,12 +482,8 @@ cc.Class({
}
}
}
const totalCount = this.data.totalCount;
if (totalCount) {
this.data.totalCount ++;
} else {
this.data.totalCount = 1;
}
this.totalCount++;
},
......
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