添加buff comp

This commit is contained in:
2024-08-27 13:23:05 +08:00
parent 45a230db33
commit 007b85fe7f
6 changed files with 177 additions and 56 deletions

View File

@@ -123,16 +123,16 @@ export class SkillCom extends CCComp {
// this.node.setScale(v3(this.scale,this.node.scale.y,this.node.scale.z))
// this.move(deltaTime)
this.toDestroy()
// if(this.t_pos){
// this.t_move(deltaTime)
// }else{
// this.line_move(deltaTime)
// }
this.t_move(deltaTime)
if (this.node.position.x > 400||this.node.position.x < -400||this.node.position.y > 1000||this.node.position.y < BoxSet.GAME_LINE) {
this.is_destroy=true
}
}
t_move(dt: number){
if(!this.t_pos){
return
}
this.node.setPosition(v3(this.node.position.x+this.x_speed*dt*this.scale,this.node.position.y+this.y_speed*dt))
}
line_move(dt: number) {