This commit is contained in:
walkpan
2024-09-23 08:14:39 +08:00
parent 96c96da552
commit 618a6e3f7b
65 changed files with 38950 additions and 8530 deletions

View File

@@ -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;
});
}