Merge pull request #751 from knoxHuang/master

perfect game and director pause / resume API
This commit is contained in:
Wang Nan
2016-05-31 09:19:08 +08:00
2 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -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 () {
+3 -3
View File
@@ -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 () {