From f3cda54407d40150e47265c5cf29333d8db4eee2 Mon Sep 17 00:00:00 2001 From: knoxHuang <821686174@qq.com> Date: Mon, 30 May 2016 14:24:31 +0800 Subject: [PATCH] perfect game and director pause / resume API --- cocos2d/core/CCDirector.js | 4 ++-- cocos2d/core/CCGame.js | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/cocos2d/core/CCDirector.js b/cocos2d/core/CCDirector.js index 1598d17e5d..9837408cba 100644 --- a/cocos2d/core/CCDirector.js +++ b/cocos2d/core/CCDirector.js @@ -405,7 +405,7 @@ cc.Director = Class.extend(/** @lends cc.Director# */{ /** * !#en Pause the director's ticker. - * !#zh 暂停正在运行的场景。 + * !#zh 暂停正在运行的场景,该暂停只会停止 Scheduler,但是不会停止渲染和 UI 响应。 * @method pause */ pause: function () { @@ -816,7 +816,7 @@ cc.Director = Class.extend(/** @lends cc.Director# */{ /** * !#en Resume director after pause, if the current scene is not paused, nothing will happen. - * !#zh 恢复暂停场景, 如果当前场景没有暂停将没任何事情发生。 + * !#zh 恢复暂停场景,恢复 Scheduler,如果当前场景没有暂停将没任何事情发生。 * @method resume */ resume: function () { diff --git a/cocos2d/core/CCGame.js b/cocos2d/core/CCGame.js index 2ce30aa4b7..4aefa82ddd 100644 --- a/cocos2d/core/CCGame.js +++ b/cocos2d/core/CCGame.js @@ -240,8 +240,8 @@ var game = /** @lends cc.game# */{ }, /** - * !#en Pause the game. - * !#zh 暂停游戏。 + * !#en Pause the game,pause main loop. + * !#zh 暂停游戏,暂停的是整个主循环。 * @method pause */ pause: function () { @@ -257,7 +257,7 @@ var game = /** @lends cc.game# */{ /** * !#en Resume the game from pause. - * !#zh 继续游戏 + * !#zh 继续游戏,继续的是整个主循环。 * @method resume */ resume: function () {