clearStatus
This commit is contained in:
parent
0d25f7e45e
commit
83a8ccbad7
@ -237,7 +237,6 @@ control.prototype.clearStatus = function() {
|
|||||||
}
|
}
|
||||||
core.status = {};
|
core.status = {};
|
||||||
core.clearStatusBar();
|
core.clearStatusBar();
|
||||||
core.resize(main.dom.body.clientWidth, main.dom.body.clientHeight);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
////// 重置游戏状态和初始数据 //////
|
////// 重置游戏状态和初始数据 //////
|
||||||
@ -249,16 +248,8 @@ control.prototype.resetStatus = function(hero, hard, floorId, route, maps, value
|
|||||||
totalTime=core.status.hero.statistics.totalTime;
|
totalTime=core.status.hero.statistics.totalTime;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 停止各个Timeout和Interval
|
// 清除游戏数据
|
||||||
for (var i in core.timeout) {
|
core.clearStatus();
|
||||||
clearTimeout(core.timeout[i]);
|
|
||||||
core.timeout[i] = null;
|
|
||||||
}
|
|
||||||
for (var i in core.interval) {
|
|
||||||
clearInterval(core.interval[i]);
|
|
||||||
core.interval[i] = null;
|
|
||||||
}
|
|
||||||
core.clearStatusBar();
|
|
||||||
|
|
||||||
// 初始化status
|
// 初始化status
|
||||||
core.status = core.clone(core.initStatus);
|
core.status = core.clone(core.initStatus);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user