dd
This commit is contained in:
@@ -6,12 +6,12 @@ export class once extends Component {
|
||||
private spine!: sp.Skeleton;
|
||||
|
||||
start() {
|
||||
|
||||
this.spine.setAnimation(0, "animation", true);
|
||||
}
|
||||
protected onLoad(): void {
|
||||
this.spine = this.getComponent(sp.Skeleton)!;
|
||||
this.spine = this.node.getChildByName("skill").getComponent(sp.Skeleton)!;
|
||||
this.spine.setCompleteListener(trackEntry => {
|
||||
this.node.destroy()
|
||||
if(this.node.isValid) this.node.active = false;
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user