新hero 基本完成
This commit is contained in:
@@ -172,7 +172,7 @@ export class HeroViewComp extends CCComp {
|
||||
this.in_shield();
|
||||
this.in_stop(dt);
|
||||
this.in_act(dt);
|
||||
// this.move(dt);
|
||||
this.move(dt);
|
||||
// if(this.m_timer.update(dt)){
|
||||
// this.move_to()
|
||||
// }
|
||||
@@ -189,9 +189,9 @@ export class HeroViewComp extends CCComp {
|
||||
if(this.scale===-1&&this.node.position.x <= BoxSet.HERO_START){
|
||||
return;
|
||||
}
|
||||
// if(this.enemy){
|
||||
// return
|
||||
// }
|
||||
if(this.enemy){
|
||||
return
|
||||
}
|
||||
this.node.setPosition(this.node.position.x+dt*this.speed*this.scale, this.node.position.y, this.node.position.z);
|
||||
}
|
||||
move_to(){
|
||||
|
||||
Reference in New Issue
Block a user