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

@@ -64,7 +64,7 @@ export class SkillCom extends CCComp {
time = distance / this.speed;
let e_pos=v3(this.node.position.x+this.t_pos.x,this.node.position.y+this.t_pos.y)
this.node.getChildByName("skill").setRotationFromEuler(0,0,this.angle)
console.log("skill ",this.node.getRotation())
// console.log("skill ",this.node.getRotation())
tween(this.node).to( time,{ position: e_pos},
{
easing: "linear",

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