死亡计数出错修复 + 刷怪5个后间隔5秒
This commit is contained in:
@@ -42,7 +42,7 @@ export class BuffComp extends Component {
|
||||
info_init(){
|
||||
this.HeroView=this.node.getComponent(HeroViewComp)
|
||||
this.top_node = this.node.getChildByName("top");
|
||||
let hp_y=this.node.getComponent(UITransform).height+20
|
||||
let hp_y=this.node.getComponent(UITransform).height
|
||||
this.top_node.setPosition(0,hp_y,0)
|
||||
this.hp_bar=this.top_node.getChildByName("hp").getComponent(ProgressBar)
|
||||
// this.top_node.getChildByName("hp").active=(this.node.getComponent(HeroViewComp).fac == 1 ? true : false)
|
||||
@@ -228,7 +228,7 @@ export class BuffComp extends Component {
|
||||
hp_tip(type:number=1,value:string="",s_uuid:number=1001,y:number=90){
|
||||
let tip =ecs.getEntity<Tooltip>(Tooltip);
|
||||
let x=this.node.position.x;
|
||||
let ny=this.node.getComponent(UITransform).height-20;
|
||||
let ny=this.node.getComponent(UITransform).height+20;
|
||||
let pos = v3(x,ny,0);
|
||||
tip.load(pos,type,value,s_uuid,this.node.parent);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user