Skip to content

Commit 2ace3f2

Browse files
authored
Merge pull request #3517 from pandamicro/develop
Use default scheduler to control action manager
2 parents 263352a + b2b9b6e commit 2ace3f2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

cocos2d/core/CCDirector.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,6 +136,7 @@ cc.Director = cc.Class.extend(/** @lends cc.Director# */{
136136
//action manager
137137
if (cc.ActionManager) {
138138
this._actionManager = new cc.ActionManager();
139+
this._scheduler.scheduleUpdate(this._actionManager, cc.Scheduler.PRIORITY_SYSTEM, false);
139140
} else {
140141
this._actionManager = null;
141142
}
@@ -228,7 +229,6 @@ cc.Director = cc.Class.extend(/** @lends cc.Director# */{
228229

229230
//tick before glClear: issue #533
230231
if (!this._paused) {
231-
this._actionManager.update(this._deltaTime);
232232
this._scheduler.update(this._deltaTime);
233233
cc.eventManager.dispatchEvent(this._eventAfterUpdate);
234234
}

0 commit comments

Comments
 (0)