mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 15:52:40 +08:00
@@ -2055,6 +2055,13 @@ var BaseNode = cc.Class(/** @lends cc.Node# */{
|
||||
}
|
||||
}
|
||||
|
||||
// check activity state
|
||||
var shouldActiveInHierarchy = (this._parent && this._parent._activeInHierarchy && this._active);
|
||||
if (shouldActiveInHierarchy !== this._activeInHierarchy) {
|
||||
this._onActivatedInHierarchy(shouldActiveInHierarchy);
|
||||
this.emit('active-in-hierarchy-changed', this);
|
||||
}
|
||||
|
||||
if (this._activeInHierarchy) {
|
||||
cc.director.getActionManager().resumeTarget(this);
|
||||
cc.eventManager.resumeTarget(this);
|
||||
|
||||
Reference in New Issue
Block a user