清理 skills下的无效文件,有用的迁移到skill目录

This commit is contained in:
2025-10-25 15:51:24 +08:00
parent 957cd6d453
commit 331effddaa
28 changed files with 10 additions and 573 deletions

View File

@@ -0,0 +1,18 @@
import { _decorator, Component, Node ,Animation} from 'cc';
const { ccclass, property } = _decorator;
@ccclass('dead')
export class dead extends Component {
start() {
let anim = this.node.getComponent(Animation);
anim.on(Animation.EventType.FINISHED, this.onAnimationFinished, this);
}
onAnimationFinished(){
this.node.destroy();
}
update(deltaTime: number) {
}
}