After exiting should restore settings

This commit is contained in:
VisualSJ 2015-06-17 14:43:41 +08:00
parent fba76b11cd
commit 0a223adf7c
1 changed files with 1 additions and 0 deletions

View File

@ -644,6 +644,7 @@ var SchedulerTimeScale = SchedulerTestLayer.extend({
},
onExit: function() {
cc.director.getScheduler().setTimeScale(1);
// restore scale
cc.director.getScheduler().unscheduleUpdateForTarget(this._newScheduler);
this._super();