cocos creator 2.0.9 龙骨暂停与播放

this._armatureDisplay = this.dbNd.getComponent(dragonBones.ArmatureDisplay);
this.scheduleOnce(function() {

    self._armatureDisplay.timeScale = 0

}, 9);//9秒后暂停

this.scheduleOnce(function() {

    self._armatureDisplay.timeScale = 4

}, 12);//12秒后可以继续播放 并4倍速 如果要还原 就=1

你可能感兴趣的:(cocos creator 2.0.9 龙骨暂停与播放)