Files
pixelheros/assets/script/game/map/view/map/layer/light.ts
pan@work d5f2f65ee6 dd
2024-08-02 17:06:21 +08:00

24 lines
460 B
TypeScript

import { _decorator, Component, Node, sp } from 'cc';
const { ccclass, property ,} = _decorator;
@ccclass('light')
export class light extends Component {
private spine!: sp.Skeleton;
start() {
}
protected onLoad(): void {
this.spine = this.getComponent(sp.Skeleton)!;
this.spine.setCompleteListener(trackEntry => {
this.node.destroy()
});
}
update(deltaTime: number) {
}
}