mirror of
https://github.com/cocos/cocos4.git
synced 2026-12-01 07:42:38 +08:00
@@ -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;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user