boss 位置调整

This commit is contained in:
2024-09-20 11:05:26 +08:00
parent c7e0430ccb
commit 4baee558c5
7 changed files with 26 additions and 26 deletions

View File

@@ -105,7 +105,7 @@ export class BossViewComp extends CCComp {
// this.node.getChildByName("hp_max").getComponent(Label).string=this.hp_max.toString();
// this.orginalFlashMaterial = this.sprite.getRenderMaterial(0);
this.node.setSiblingIndex(100)
// this.node.setSiblingIndex(100)
// 注册单个碰撞体的回调函数
@@ -208,7 +208,7 @@ export class BossViewComp extends CCComp {
return;
}
// this.set_diry()
this.node.setPosition(this.node.position.x+dt*this.speed*this.scale, this.node.position.y+dt*this.dir_y, this.node.position.z);
this.node.setPosition(this.node.position.x+dt*this.speed*this.scale, this.node.position.y, this.node.position.z);
}
move_to(enemy:Vec3){
// console.log("move to ",enemy);