添加buff comp
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user