Commit 35c46ec6 authored by liujiangnan's avatar liujiangnan

feat: 纸书调试

parent 888aab8a
...@@ -333,6 +333,11 @@ export default class SceneComponent extends MyCocosSceneComponent { ...@@ -333,6 +333,11 @@ 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 isDebug = cc.sys.localStorage.getItem('isDebug');
cc.sys.localStorage.setItem('isDebug', !isDebug);
}
bk.attr({bk_count: null}); bk.attr({bk_count: null});
}, 2000); }, 2000);
} else if (bk_count>10){ } else if (bk_count>10){
......
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