mirror of https://github.com/axmolengine/axmol.git
After exiting should restore settings
This commit is contained in:
parent
fba76b11cd
commit
0a223adf7c
|
@ -644,6 +644,7 @@ var SchedulerTimeScale = SchedulerTestLayer.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
onExit: function() {
|
onExit: function() {
|
||||||
|
cc.director.getScheduler().setTimeScale(1);
|
||||||
// restore scale
|
// restore scale
|
||||||
cc.director.getScheduler().unscheduleUpdateForTarget(this._newScheduler);
|
cc.director.getScheduler().unscheduleUpdateForTarget(this._newScheduler);
|
||||||
this._super();
|
this._super();
|
||||||
|
|
Loading…
Reference in New Issue