Commit 56d48c2c authored by liujiangnan's avatar liujiangnan

debug

parent 9a7a8d30
...@@ -339,5 +339,8 @@ var game = cc.Class({ ...@@ -339,5 +339,8 @@ var game = cc.Class({
this._intervalIds.forEach(id => { this._intervalIds.forEach(id => {
clearInterval(id); clearInterval(id);
}); });
LWD_3.game.inst._intervalIds.forEach(id => {
clearInterval(id);
});
}, },
}); });
// 全局环境预声明 // 全局环境预声明
window.LWD_3 = {}; // 全局 window.LWD_3 = window.LWD_3 || {}; // 全局
\ No newline at end of file \ No newline at end of file
...@@ -153,6 +153,7 @@ LWD_3.data_mgr = { ...@@ -153,6 +153,7 @@ LWD_3.data_mgr = {
clearInterval(this.timer) clearInterval(this.timer)
this.timer = setInterval(() => { this.timer = setInterval(() => {
console.log("========liu==============");
if (LWD_3.data_mgr.gameState == 2) { if (LWD_3.data_mgr.gameState == 2) {
return; return;
} }
......
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