* bug fix

* Update animation-component.ts
This commit is contained in:
Leslie Leigh
2019-06-24 10:17:15 +08:00
committed by pandamicro
parent 36d838ac7e
commit 00d0495eaa
+5
View File
@@ -193,6 +193,11 @@ export class AnimationComponent extends Component implements IEventTarget {
cc.director.getAnimationManager().removeCrossFade(this._crossFade);
this._crossFade.stop();
}
for (const name of Object.keys(this._nameToState)) {
const state = this._nameToState[name];
state.stop();
}
this._nameToState = null as any;
}
/**