Restart Animate

This commit is contained in:
ckcz123 2018-11-01 16:22:07 +08:00
parent b4f00b8ce7
commit d21f0fd5f3
3 changed files with 5 additions and 5 deletions

View File

@ -2418,7 +2418,7 @@ actions.prototype.clickAbout = function () {
if (core.isPlaying())
core.ui.closePanel();
else
core.restart();
core.restart(true);
}

View File

@ -335,8 +335,8 @@ control.prototype.resetStatus = function(hero, hard, floorId, route, maps, value
}
////// 重新开始游戏;此函数将回到标题页面 //////
control.prototype.restart = function() {
this.showStartAnimate(true);
control.prototype.restart = function(noAnimate) {
this.showStartAnimate(noAnimate);
if (core.bgms.length>0)
core.playBgm(core.bgms[0]);
}

View File

@ -362,8 +362,8 @@ core.prototype.startGame = function (hard, seed, route, callback) {
}
////// 重新开始游戏;此函数将回到标题页面 //////
core.prototype.restart = function() {
core.control.restart();
core.prototype.restart = function(noAnimate) {
core.control.restart(noAnimate);
}
/////////// 系统事件相关 END ///////////