dd
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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