boss 位置调整
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user