技能动画 继续完善

This commit is contained in:
panw
2025-01-10 16:50:18 +08:00
parent 58fa6e0aa3
commit 56832c41fe
52 changed files with 786 additions and 695 deletions

View File

@@ -14,7 +14,6 @@ export class LineMCom extends Component {
}
update(deltaTime: number) {
if(smc.mission.pause) return
if(smc.mission.pause) return
this.cd+=deltaTime
if(this.cd >= this.base.cd){
@@ -23,14 +22,8 @@ export class LineMCom extends Component {
this.node.active = true
this.cd=0
}
this.time+=deltaTime
if(this.time>=this.base.in_time){
this.base.is_destroy = true
}
this.node.setPosition(this.node.position.x+this.base.speed*deltaTime,this.node.position.y,this.node.position.z)
if(this.node.position.x>1000||this.node.position.x<-1000){
this.base.is_destroy = true
}
}
}